From 6dbab9ba3577cfce3cc3b13e8ca52a9406290e4e Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Fri, 23 Aug 2019 16:39:57 -0400 Subject: [PATCH] Fix for PMD finding that this class doesn't have the right override method. --- .../sourceforge/pmd/lang/scala/ast/nodes/ASTModOverride.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }