Fix checkstyle violations

This commit is contained in:
shedaniel
2024-04-04 22:27:45 +09:00
parent 63f00eecf4
commit 72269221ef
8 changed files with 29 additions and 27 deletions

View File

@@ -433,12 +433,15 @@ public abstract class GenerateSourcesTask extends AbstractLoomTask {
// Remove Forge and NeoForge classes from linemap
// TODO: We should instead not decompile Forge's classes at all
var lineMap = new HashMap<String, ClassLineNumbers.Entry>();
for (Map.Entry<String, ClassLineNumbers.Entry> entry : lineNumbers.lineMap().entrySet()) {
String name = entry.getKey();
if (!name.startsWith("net/minecraftforge/") && !name.startsWith("net/neoforged/")) {
lineMap.put(name, entry.getValue());
}
}
return new ClassLineNumbers(lineMap);
} else {
return lineNumbers;