changeset 59249:d1688b8d1516

Merge
author coleenp
date Tue, 10 Dec 2019 08:12:29 -0500
parents de502a45751f 88799f0b0f82
children d56c192d967d
files
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.incubator.jpackage/share/classes/jdk/incubator/jpackage/internal/IOUtils.java	Tue Dec 10 08:11:48 2019 -0500
+++ b/src/jdk.incubator.jpackage/share/classes/jdk/incubator/jpackage/internal/IOUtils.java	Tue Dec 10 08:12:29 2019 -0500
@@ -121,10 +121,7 @@
         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!