8302623: jarsigner - use BufferedOutputStream to improve performance while creating the signed jar

Reviewed-by: weijun
This commit is contained in:
Jaikiran Pai 2023-02-18 11:58:05 +00:00
parent 43cf8b3d80
commit f82385e587

@ -688,7 +688,8 @@ public final class JarSigner {
throw new AssertionError(asae);
}
ZipOutputStream zos = new ZipOutputStream(os);
ZipOutputStream zos = new ZipOutputStream(
(os instanceof BufferedOutputStream) ? os : new BufferedOutputStream(os));
Manifest manifest = new Manifest();
byte[] mfRawBytes = null;