Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import net.fabricmc.mappingio.MappingWriter;

abstract class EnigmaWriterBase implements MappingWriter {
EnigmaWriterBase(Writer writer) throws IOException {
EnigmaWriterBase(Writer writer) {
this.writer = writer;
}

Expand Down Expand Up @@ -185,10 +185,8 @@ protected void writeMismatchedOrMissingClasses() throws IOException {
if (dstEnd < 0) dstEnd = dstName.length();
int dstLen = dstEnd - dstStart;

if (dstLen != srcLen || !srcClassName.regionMatches(srcStart, dstName, dstStart, srcLen)) { // src != dst
writer.write(' ');
writer.write(dstName, dstStart, dstLen);
}
writer.write(' ');
writer.write(dstName, dstStart, dstLen);
}
}

Expand Down