src/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java

Print this page

        

*** 81,91 **** /** * Used for the -Xprint option and called by Elements.printElements */ public static class PrintingElementVisitor ! extends SimpleElementVisitor6<PrintingElementVisitor, Boolean> { int indentation; // Indentation level; final PrintWriter writer; final Elements elementUtils; public PrintingElementVisitor(Writer w, Elements elementUtils) { --- 81,91 ---- /** * Used for the -Xprint option and called by Elements.printElements */ public static class PrintingElementVisitor ! extends SimpleElementVisitor7<PrintingElementVisitor, Boolean> { int indentation; // Indentation level; final PrintWriter writer; final Elements elementUtils; public PrintingElementVisitor(Writer w, Elements elementUtils) {
*** 115,125 **** // Don't print out the constructor of an anonymous class if (kind == CONSTRUCTOR && enclosing != null && NestingKind.ANONYMOUS == // Use an anonymous class to determine anonymity! ! (new SimpleElementVisitor6<NestingKind, Void>() { @Override public NestingKind visitType(TypeElement e, Void p) { return e.getNestingKind(); } }).visit(enclosing)) --- 115,125 ---- // Don't print out the constructor of an anonymous class if (kind == CONSTRUCTOR && enclosing != null && NestingKind.ANONYMOUS == // Use an anonymous class to determine anonymity! ! (new SimpleElementVisitor7<NestingKind, Void>() { @Override public NestingKind visitType(TypeElement e, Void p) { return e.getNestingKind(); } }).visit(enclosing))