Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1610

ObjectContext API to use varargs

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1M2
    • 3.1M3
    • Core Library
    • None

    Description

      It is quite annoying to wrap objects in collections to invalidate objects... This is easily solved with varargs. For symmetry we can do the same with with deleteObjects. So we'll end up with:

      void invalidateObjects(Collection<?> objects);
      void invalidateObjects(Object... objects);

      void deleteObjects(Collection<?> objects);
      void deleteObjects(Object... objects);

      @Deprecated // redundant
      deleteObject(Object object);

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment