elharo commented on code in PR #111:
URL: https://github.com/apache/maven-jarsigner/pull/111#discussion_r3838394404


##########
src/main/java/org/apache/maven/shared/jarsigner/JarSignerUtil.java:
##########
@@ -82,31 +82,36 @@ public static void unsignArchive(File jarFile) throws 
IOException {
 
         Path unsignedPath = Files.createTempFile(jarFile.toPath().getParent(), 
".unsigned", "");
 
-        try (ZipInputStream zis = new ZipInputStream(new 
BufferedInputStream(Files.newInputStream(jarFile.toPath())));
-                ZipOutputStream zos =
-                        new ZipOutputStream(new 
BufferedOutputStream(Files.newOutputStream(unsignedPath)))) {
-            for (ZipEntry ze = zis.getNextEntry(); ze != null; ze = 
zis.getNextEntry()) {
-                if (isSignatureFile(ze.getName())) {
-                    continue;
+        try {

Review Comment:
   I don't think there's any needed for a nested try block here. One try block 
should be sufficient.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to