...
This compliant solution instantiates a new ArrayList
and forwards it to the doLogic()
method.
Code Block | ||
---|---|---|
| ||
public void copyInterfaceInput(Collection<String> collection) { // Convert input to trusted implementation collection = new ArrayList(collection); doLogic(collection); } |
...