You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Laszlo Hornyak (JIRA)" <ji...@apache.org> on 2013/10/09 20:56:46 UTC

[jira] [Created] (CLOUDSTACK-4841) ReflectUtil.getAllFieldsForClass(Class cmdClass,Class[] excludeClasses) could accept a Collection

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)