Suppress "Inconsistent inner class entries" error when decompiling

This commit is contained in:
modmuss50 2021-05-27 22:08:56 +01:00
parent 640e1b4721
commit 3318a15cc5

View file

@ -105,7 +105,14 @@ public abstract class AbstractFernFlowerDecompiler implements LoomDecompiler {
spec.getMainClass().set(fernFlowerExecutor().getName());
spec.jvmArgs("-Xms200m", "-Xmx3G");
spec.setArgs(args);
spec.setErrorOutput(System.err);
spec.setErrorOutput(new ConsumingOutputStream(line -> {
if (line.startsWith("Inconsistent inner class entries")) {
// Suppress this
return;
}
System.err.println(line);
}));
spec.setStandardOutput(new ConsumingOutputStream(line -> {
if (line.startsWith("Listening for transport") || !line.contains("::")) {
System.out.println(line);