< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/code/Printer.java

Print this page

        

*** 316,330 **** } else { s = localize(locale, "compiler.misc.anonymous.class", visit(norm.supertype_field, locale)); } return s; ! } else if (longform) { ! return sym.getQualifiedName().toString(); } else { ! return sym.name.toString(); } } /** * Converts a set of method argument types into their corresponding * localized string representation. --- 316,334 ---- } else { s = localize(locale, "compiler.misc.anonymous.class", visit(norm.supertype_field, locale)); } return s; ! } ! String s; ! if (longform) { ! s = sym.getQualifiedName().toString(); } else { ! s = sym.name.toString(); } + + return sym.isProjectedNullable() ? s + '?' : s; } /** * Converts a set of method argument types into their corresponding * localized string representation.
< prev index next >