Skip to content

Commit 1a01c87

Browse files
committed
Spotbugs - allows malicious mutation
1 parent 6322b13 commit 1a01c87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/io/file/CopyDirectoryVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected void copy(final Path sourceFile, final Path targetFile) throws IOExcep
7474
* @since 2.8.0
7575
*/
7676
public CopyOption[] getCopyOptions() {
77-
return copyOptions;
77+
return copyOptions.clone();
7878
}
7979

8080
/**

0 commit comments

Comments
 (0)