Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4057

ModelFactory: Ordering of method arguments inconsistent

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

Details

    Description

      the ordering of the methods arguments is inconstant:

      public <ModelType> ModelType createModel(Object adaptable, Class<ModelType> type);
      
      public boolean canCreateFromAdaptable(Class<?> modelClass, Object adaptable)
      

      class is last argument for the one method, first argument for the other.

      Attachments

        Activity

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

          People

            sseifert Stefan Seifert
            sseifert Stefan Seifert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment