Only process lines that contain :: should fix an odd StringIndexOutOfBoundsException

dev/0.11
modmuss50 2019-10-21 20:57:10 +01:00
parent 61e60b28d2
commit 5a607963b5
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public class FernFlowerTask extends AbstractDecompileTask implements ForkingJava
spec.setArgs(args); spec.setArgs(args);
spec.setErrorOutput(System.err); spec.setErrorOutput(System.err);
spec.setStandardOutput(new ConsumingOutputStream(line -> { spec.setStandardOutput(new ConsumingOutputStream(line -> {
if (line.startsWith("Listening for transport")) { if (line.startsWith("Listening for transport") || !line.contains("::")) {
System.out.println(line); System.out.println(line);
return; return;
} }