mirror of https://github.com/FabricMC/yarn.git
Cleanup
This commit is contained in:
parent
e40573e356
commit
e53e99dcfa
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue