Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: compiler/java/com/google/dart/compiler/DefaultErrorFormatter.java

Issue 8476005: Support for --machine-problems, tests for PrettyErrorFormatter (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compiler/java/com/google/dart/compiler/DefaultErrorFormatter.java
diff --git a/compiler/java/com/google/dart/compiler/DefaultErrorFormatter.java b/compiler/java/com/google/dart/compiler/DefaultErrorFormatter.java
index df0cfe545d1e0137716d7ca7b3bd33dbe8e866a8..898cb322e9b0f4a40e9447932747680394fc43de 100644
--- a/compiler/java/com/google/dart/compiler/DefaultErrorFormatter.java
+++ b/compiler/java/com/google/dart/compiler/DefaultErrorFormatter.java
@@ -11,9 +11,9 @@ import java.io.PrintStream;
* location.
*/
public class DefaultErrorFormatter implements ErrorFormatter {
- protected PrintStream outputStream = System.err;
-
- public void setOutputStream(PrintStream outputStream) {
+ protected final PrintStream outputStream;
+
+ public DefaultErrorFormatter(PrintStream outputStream) {
this.outputStream = outputStream;
}

Powered by Google App Engine
This is Rietveld 408576698