Replace hard-coded 2 with GZIP_HEADER.length

bzip2
Graham 5 years ago
parent 23a85fd820
commit 6e750b008f
  1. 2
      asm/src/main/java/dev/openrs2/asm/classpath/Library.java

@ -161,7 +161,7 @@ public final class Library implements Iterable<ClassNode> {
try ( try (
var in = new JarInputStream(Files.newInputStream(temp)); var in = new JarInputStream(Files.newInputStream(temp));
var out = new GZIPOutputStream(new SkipOutputStream(Files.newOutputStream(path), 2)) var out = new GZIPOutputStream(new SkipOutputStream(Files.newOutputStream(path), GZIP_HEADER.length))
) { ) {
Pack200.newPacker().pack(in, out); Pack200.newPacker().pack(in, out);
} }

Loading…
Cancel
Save