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

ModelFactory: Ordering of method arguments inconsistent

    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

          People

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

            Dates

              Created:
              Updated:
              Resolved: