This commit is contained in:
modmuss50 2024-03-06 21:51:21 +00:00
parent e40573e356
commit e53e99dcfa
1 changed files with 5 additions and 6 deletions

View File

@ -31,12 +31,11 @@ public abstract class FormatMappingsTask extends FilamentTask {
void run() throws IOException {
Path path = getInput().get().getAsFile().toPath();
try (MappingWriter writer = MappingWriter.create(path, MappingFormat.ENIGMA_DIR)) {
Objects.requireNonNull(writer, "writer");
MappingWriter writer = MappingWriter.create(path, MappingFormat.ENIGMA_DIR);
Objects.requireNonNull(writer, "writer");
MemoryMappingTree tree = new MemoryMappingTree();
MappingReader.read(path, MappingFormat.ENIGMA_DIR, tree);
tree.accept(writer, VisitOrder.createByName());
}
MemoryMappingTree tree = new MemoryMappingTree();
MappingReader.read(path, MappingFormat.ENIGMA_DIR, tree);
tree.accept(writer, VisitOrder.createByName());
}
}