Fixups from review (#4128)

This commit is contained in:
Andreas Dangel
2022-09-29 15:54:50 +02:00
parent af30f4cef9
commit 792fe44d0b
2 changed files with 3 additions and 3 deletions

View File

@ -204,7 +204,7 @@ public class UnnecessaryFullyQualifiedNameRule extends AbstractJavaRule {
String importStr = firstMatch.getImportedName() + (firstMatch.isImportOnDemand() ? ".*" : "");
String type = firstMatch.isStatic() ? "static " : "";
addViolation(data, node, new Object[]{node.getImage(), importStr, type});
asCtx(data).addViolation(node, node.getImage(), importStr, type);
}
}
}

View File

@ -623,7 +623,7 @@ public class UnnecessaryFullyQualifiedName {
</test-code>
<test-code>
<description>False positive when same package inner class is referenced (not enum)</description>
<description>False positive when same package inner class is referenced (not enum) #4085</description>
<expected-problems>0</expected-problems>
<code><![CDATA[
package net.sourceforge.pmd.lang.java.rule.codestyle.unnecessaryfullyqualifiedname;
@ -642,7 +642,7 @@ public class OuterTestClass {
</test-code>
<test-code>
<description>Should report fully-qualified name usage of a class in itself.</description>
<description>Should report fully-qualified name usage of a class in itself #4085</description>
<expected-problems>1</expected-problems>
<expected-linenumbers>4</expected-linenumbers>
<code><![CDATA[