Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
3.0.0, 4.0.0
Description
MapWork.java
public ArrayList<Operator<?>> getWorks() { return new ArrayList<Operator<?>>(aliasToWork.values()); } public ArrayList<Path> getPaths() { ArrayList<Path> ret=new ArrayList<>(); ret.addAll(pathToAliases.keySet()); return ret; }
getWorks method correctly uses the constructor to populate the ArrayList. Please update getPaths method to do the same, instead of creating an empty array, then creating a new array to accommodate the addAll request.