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 {
try (var out = new DeterministicJarOutputStream(Files.newOutputStream(path))) {
for (var entry : classes.entrySet()) {
var clazz = entry.getValue();
for (var clazz : classes.values()) {
var writer = new ClassWriter(0);
clazz.accept(new CheckClassAdapter(writer, true));

Loading…
Cancel
Save