|
|
@ -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)); |
|
|
|
|
|
|
|
|
|
|
|