GoogleContainerTools / minikube-build-tools-for-java

Minikube lifecycle management tools for Gradle and Maven.
Apache License 2.0
57 stars 27 forks source link

Removes unnecessary collection copies by using Collections#unmodifiable... instead of Immutable...#copyOf. #89

Closed coollog closed 6 years ago

coollog commented 6 years ago

For these cases changed where a private collection field is returned, there is no need to maintain immutability. A less-strict read-only view of the collections can be returned instead, so that no unnecessary copying is done.