Simplify writeJar

bzip2
Graham 5 years ago
parent 8966d7b531
commit 3366156d92
  1. 3
      asm/src/main/java/dev/openrs2/asm/Library.java

@ -93,8 +93,7 @@ public final class Library implements Iterable<ClassNode> {
public void writeJar(Path path) throws IOException { public void writeJar(Path path) throws IOException {
try (var out = new DeterministicJarOutputStream(Files.newOutputStream(path))) { try (var out = new DeterministicJarOutputStream(Files.newOutputStream(path))) {
for (var entry : classes.entrySet()) { for (var clazz : classes.values()) {
var clazz = entry.getValue();
var writer = new ClassWriter(0); var writer = new ClassWriter(0);
clazz.accept(new CheckClassAdapter(writer, true)); clazz.accept(new CheckClassAdapter(writer, true));

Loading…
Cancel
Save