8235601: redundant code in IOUtils.java

Reviewed-by: prr, asemenyuk, almatvee
This commit is contained in:
Andy Herrick 2019-12-10 08:11:27 -05:00
parent 6ad37680dd
commit 0b1499cb48

View File

@ -121,10 +121,7 @@ public class IOUtils {
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!