Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The code in MetaClassImpl creates an ArrayList where we know it will only return a list of a single element. Using Collections.singletonList would reduce the memory pressure, as well as Collections.emptyList() if the list is empty.
Putting a "breaking" label because potentially one could rely on the fact that respondsTo returns a mutable list, even though improbable.