diff --git a/pmd-scala/src/main/java/net/sourceforge/pmd/lang/scala/ast/nodes/ASTModOverride.java b/pmd-scala/src/main/java/net/sourceforge/pmd/lang/scala/ast/nodes/ASTModOverride.java index d51847cafa..d119cc05b6 100644 --- a/pmd-scala/src/main/java/net/sourceforge/pmd/lang/scala/ast/nodes/ASTModOverride.java +++ b/pmd-scala/src/main/java/net/sourceforge/pmd/lang/scala/ast/nodes/ASTModOverride.java @@ -23,7 +23,8 @@ public class ASTModOverride extends AbstractScalaNode { super(scalaNode); } - @Override + // java.lang pacakage is required or else PMD can't see this Override + @java.lang.Override public R accept(ScalaParserVisitor visitor, D data) { return visitor.visit(this, data); }