From 3366156d9214767466063f402764679b868ebdf0 Mon Sep 17 00:00:00 2001 From: Graham Date: Mon, 29 Jul 2019 13:58:59 +0100 Subject: [PATCH] Simplify writeJar --- asm/src/main/java/dev/openrs2/asm/Library.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/asm/src/main/java/dev/openrs2/asm/Library.java b/asm/src/main/java/dev/openrs2/asm/Library.java index 4d80755d..b957f923 100644 --- a/asm/src/main/java/dev/openrs2/asm/Library.java +++ b/asm/src/main/java/dev/openrs2/asm/Library.java @@ -93,8 +93,7 @@ public final class Library implements Iterable { 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));