62 DiagnosticFormatter<JCDiagnostic> formatter; |
62 DiagnosticFormatter<JCDiagnostic> formatter; |
63 final String prefix; |
63 final String prefix; |
64 |
64 |
65 /** Create a new diagnostic factory. */ |
65 /** Create a new diagnostic factory. */ |
66 protected Factory(Context context) { |
66 protected Factory(Context context) { |
67 this(Messages.instance(context), "compiler"); |
67 this(JavacMessages.instance(context), "compiler"); |
68 context.put(diagnosticFactoryKey, this); |
68 context.put(diagnosticFactoryKey, this); |
69 } |
69 } |
70 |
70 |
71 /** Create a new diagnostic factory. */ |
71 /** Create a new diagnostic factory. */ |
72 public Factory(Messages messages, String prefix) { |
72 public Factory(JavacMessages messages, String prefix) { |
73 this.prefix = prefix; |
73 this.prefix = prefix; |
74 this.formatter = new BasicDiagnosticFormatter(messages); |
74 this.formatter = new BasicDiagnosticFormatter(messages); |
75 } |
75 } |
76 |
76 |
77 /** |
77 /** |