Laszlo Hornyak created CLOUDSTACK-4841:
------------------------------------------

             Summary: ReflectUtil.getAllFieldsForClass(Class<?> 
cmdClass,Class<?>[] excludeClasses) could accept a Collection
                 Key: CLOUDSTACK-4841
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4841
             Project: CloudStack
          Issue Type: Improvement
            Reporter: Laszlo Hornyak
            Priority: Trivial


    public static Set<Field> getAllFieldsForClass(Class<?> cmdClass,
                                                  Class<?>[] excludeClasses)
                                                  
could be just

    public static Set<Field> getAllFieldsForClass(Class<?> cmdClass,
                                                  Collection<Class<?>> 
excludeClasses)

 So that the search logic could be elliminated from the code and client code 
could pass over unmodifiable collections rather than always creating an array.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to