< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/util/RichDiagnosticFormatter.java

Print this page
@@ -386,14 +386,17 @@
              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();
+             String s;
+             if (longform)
+                 s =  nameSimplifier.simplify(sym).toString();
              else
-                 return sym.name.toString();
+                 s = sym.name.toString();
+ 
+             return s;
          }
  
          @Override
          public String visitTypeVar(TypeVar t, Locale locale) {
              if (unique(t) ||
< prev index next >