Skip to content

Commit a7ab5a0

Browse files
committed
Remove workaround for GWT PrintStream.flush throwing IOException
PiperOrigin-RevId: 707170606
1 parent 519a959 commit a7ab5a0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/com/google/javascript/jscomp/PerformanceTracker.java

+1-10
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
import com.google.javascript.jscomp.base.format.SimpleFormat;
3131
import com.google.javascript.rhino.Node;
3232
import com.google.javascript.rhino.Token;
33-
import java.io.FilterOutputStream;
34-
import java.io.IOException;
3533
import java.io.PrintStream;
3634
import java.util.ArrayDeque;
3735
import java.util.ArrayList;
@@ -458,16 +456,9 @@ public void outputTracerReport(PrintStream output) {
458456
}
459457

460458
output.println();
461-
462459
// this.output can be System.out, so don't close it to not lose subsequent
463460
// error messages. Flush to ensure that you will see the tracer report.
464-
try {
465-
// TODO(johnlenz): Remove this cast and try/catch.
466-
// This is here to workaround GWT http://b/30943295
467-
((FilterOutputStream) output).flush();
468-
} catch (IOException e) {
469-
throw new RuntimeException("Unreachable.", e);
470-
}
461+
output.flush();
471462
}
472463

473464
/**

0 commit comments

Comments
 (0)