Skip to content

Commit

Permalink
#23507 Yet one forgotten ZipOutputStream removed
Browse files Browse the repository at this point in the history
  • Loading branch information
dmatej committed Mar 4, 2022
1 parent cf41ba4 commit 440c938
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.zip.ZipOutputStream;
import org.glassfish.appclient.server.core.AppClientDeployerHelper;
import org.glassfish.appclient.server.core.jws.AppClientHTTPAdapter;
import static org.glassfish.appclient.server.core.jws.RestrictedContentAdapter.DATE_HEADER_NAME;
Expand Down Expand Up @@ -118,8 +118,7 @@ public void process(String relativeURIString, Request gReq, Response gResp) thro
// Create an on-disk copy of the signed JAR for debugging purposes if logging is detailed enough.
if (logger.isLoggable(Level.FINEST)) {
final File debugSignedJARFile = new File(unsignedFile().getAbsolutePath() + ".debug");
try (ZipOutputStream dbgZos = new ZipOutputStream(
new BufferedOutputStream(new FileOutputStream(debugSignedJARFile)))) {
try (OutputStream dbgZos = new BufferedOutputStream(new FileOutputStream(debugSignedJARFile))) {
jarSigner().signJar(unsignedFile(), dbgZos, userProvidedAlias(),
createJWSAttrs(AppClientHTTPAdapter.requestURI(gReq), appName()), addedContent);
}
Expand Down

0 comments on commit 440c938

Please sign in to comment.