diff --git a/cordapp-cpk2/src/main/java/net/corda/plugins/cpb2/CpbTask.java b/cordapp-cpk2/src/main/java/net/corda/plugins/cpb2/CpbTask.java index b2c7b965b..e1f629b6e 100644 --- a/cordapp-cpk2/src/main/java/net/corda/plugins/cpb2/CpbTask.java +++ b/cordapp-cpk2/src/main/java/net/corda/plugins/cpb2/CpbTask.java @@ -74,9 +74,9 @@ private boolean isCPK(@NotNull FileTreeElement element) { return false; } - Path cpkPath = element.getFile().toPath(); + final Path cpkPath = element.getFile().toPath(); try (JarInputStream cpkStream = new JarInputStream(new BufferedInputStream(Files.newInputStream(cpkPath)))) { - String cpkType = cpkStream.getManifest().getMainAttributes().getValue(CORDA_CPK_TYPE); + final String cpkType = cpkStream.getManifest().getMainAttributes().getValue(CORDA_CPK_TYPE); return cpkType != null && EXCLUDED_CPK_TYPES.contains(cpkType.toLowerCase()); } catch (IOException e) { throw new InvalidUserDataException(e.getMessage(), e); @@ -85,7 +85,6 @@ private boolean isCPK(@NotNull FileTreeElement element) { public void checkForDuplicates() { Set cpkNames = new HashSet<>(); - System.out.println("checking duplicates"); FileCollection files = getInputs().getFiles(); for (File file : files) { Path path = file.toPath();