Skip to content
Permalink
Browse files

8235601: redundant code in IOUtils.java

Reviewed-by: prr, asemenyuk, almatvee
  • Loading branch information
Andy Herrick
Andy Herrick committed Dec 10, 2019
1 parent 6ad3768 commit 0b1499cb48eef157de7dacb7308bc8c3cc91520a
@@ -121,10 +121,7 @@ public static void copyFile(File sourceFile, File destFile)
try (FileChannel source = new FileInputStream(sourceFile).getChannel();
FileChannel destination =
new FileOutputStream(destFile).getChannel()) {

if (destination != null && source != null) {
destination.transferFrom(source, 0, source.size());
}
destination.transferFrom(source, 0, source.size());
}

//preserve executable bit!

0 comments on commit 0b1499c

Please sign in to comment.
You can’t perform that action at this time.