src/share/classes/com/sun/tools/javac/util/RawDiagnosticFormatter.java

changeset 168
4cdaaf4c5dca
parent 137
e4eaddca54b7
child 221
6ada6122dd4f
equal deleted inserted replaced
166:32e309883246 168:4cdaaf4c5dca
83 else 83 else
84 return s; 84 return s;
85 } 85 }
86 86
87 @Override 87 @Override
88 protected String formatSubdiagnostics(JCDiagnostic d, Locale l) {
89 StringBuilder buf = new StringBuilder();
90 String sep = "";
91 buf.append(",{");
92 for (JCDiagnostic d2 : d.getSubdiagnostics()) {
93 buf.append(sep);
94 buf.append("(" + format(d2, l) + ")");
95 sep = ",";
96 }
97 buf.append('}');
98 return buf.toString();
99 }
100
101 @Override
88 protected String localize(Locale l, String s, Object... args) { 102 protected String localize(Locale l, String s, Object... args) {
89 StringBuffer buf = new StringBuffer(); 103 StringBuffer buf = new StringBuffer();
90 buf.append(s); 104 buf.append(s);
91 String sep = ": "; 105 String sep = ": ";
92 for (Object o : args) { 106 for (Object o : args) {

mercurial