80 */ |
80 */ |
81 public BasicDiagnosticFormatter(JavacMessages msgs) { |
81 public BasicDiagnosticFormatter(JavacMessages msgs) { |
82 super(msgs, new BasicConfiguration()); |
82 super(msgs, new BasicConfiguration()); |
83 } |
83 } |
84 |
84 |
85 public String format(JCDiagnostic d, Locale l) { |
85 public String formatDiagnostic(JCDiagnostic d, Locale l) { |
86 if (l == null) |
86 if (l == null) |
87 l = messages.getCurrentLocale(); |
87 l = messages.getCurrentLocale(); |
88 String format = selectFormat(d); |
88 String format = selectFormat(d); |
89 StringBuilder buf = new StringBuilder(); |
89 StringBuilder buf = new StringBuilder(); |
90 for (int i = 0; i < format.length(); i++) { |
90 for (int i = 0; i < format.length(); i++) { |