diff --git a/pmd-java/etc/grammar/Java.jjt b/pmd-java/etc/grammar/Java.jjt index 57d39e2875..b365610e64 100644 --- a/pmd-java/etc/grammar/Java.jjt +++ b/pmd-java/etc/grammar/Java.jjt @@ -2429,7 +2429,7 @@ void InstanceOfExpression() #void: ("instanceof" AnnotatedRefType() #TypeExpression {jjtThis.setOp(BinaryOp.INSTANCEOF);} - ) #InfixExpression(2) + ) #InfixExpression(2) ] } diff --git a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/internal/AbstractSymbolTable.java b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/internal/AbstractSymbolTable.java index 620b399123..f218a7eeab 100644 --- a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/internal/AbstractSymbolTable.java +++ b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/internal/AbstractSymbolTable.java @@ -25,7 +25,7 @@ import net.sourceforge.pmd.lang.java.symbols.table.JSymbolTable; abstract class AbstractSymbolTable implements JSymbolTable { /** Additional info about the context. */ - protected final SymbolTableResolveHelper myResolveHelper; + final SymbolTableResolveHelper myResolveHelper; private final JSymbolTable myParent; @@ -97,7 +97,7 @@ abstract class AbstractSymbolTable implements JSymbolTable { * * @return The class, or null if it couldn't be resolved */ - protected final Class loadClass(String fqcn) { + final Class loadClass(String fqcn) { return myResolveHelper.loadClass(fqcn, e -> getLogger().log(Level.FINE, e, () -> "Failed loading class " + fqcn + "with an incomplete classpath.")); } @@ -109,7 +109,7 @@ abstract class AbstractSymbolTable implements JSymbolTable { * * @return The class, or null if it couldn't be resolved */ - protected final Class loadClassIgnoreFailure(String fqcn) { + final Class loadClassIgnoreFailure(String fqcn) { return myResolveHelper.loadClass(fqcn, e -> { }); }