< prev index next > src/jdk.compiler/share/classes/com/sun/tools/javac/util/RichDiagnosticFormatter.java
Print this page
Symbol sym = t.tsym;
if (sym.name.length() == 0 ||
!getConfiguration().isEnabled(RichFormatterFeature.SIMPLE_NAMES)) {
return super.className(t, longform, locale);
}
! else if (longform)
! return nameSimplifier.simplify(sym).toString();
else
! return sym.name.toString();
}
@Override
public String visitTypeVar(TypeVar t, Locale locale) {
if (unique(t) ||
Symbol sym = t.tsym;
if (sym.name.length() == 0 ||
!getConfiguration().isEnabled(RichFormatterFeature.SIMPLE_NAMES)) {
return super.className(t, longform, locale);
}
! String s;
! if (longform)
+ s = nameSimplifier.simplify(sym).toString();
else
! s = sym.name.toString();
+
+ return s;
}
@Override
public String visitTypeVar(TypeVar t, Locale locale) {
if (unique(t) ||
< prev index next >