Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.2
-
None
Description
Like MapUtils.putAll() method returns input map, CollectionUtils.addAll() methods should return the input collection.
This will allow to init and populate collection at the same line:
ArrayList inputs = (ArrayList) CollectionUtils.addAll(new ArrayList(), new String[]
);