Spotbugs - allows malicious mutation
MODIFY
src/main/java/org/apache/commons/io/file/CopyDirectoryVisitor.java
src/main/java/org/apache/commons/io/file/CopyDirectoryVisitor.java
@@ -74,7 +74,7 @@ protected void copy(final Path sourceFile, final Path targetFile) throws IOExcep
* @since 2.8.0
*/
public CopyOption[] getCopyOptions() {
- return copyOptions;
+ return copyOptions.clone();
}
/**

Spotbugs - allows malicious mutation