JAVA-18132 Upgrade custom-pmd module to JDK 11 (#13500)
Co-authored-by: timis1 <noreplay@yahoo.com>
This commit is contained in:
+4
-4
@@ -44,10 +44,10 @@
|
||||
</build>
|
||||
|
||||
<properties>
|
||||
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
|
||||
<pmdVersion>6.0.1</pmdVersion>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
<maven-compiler-plugin.version>3.10.0</maven-compiler-plugin.version>
|
||||
<pmdVersion>6.53.0</pmdVersion>
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
||||
@@ -18,8 +18,9 @@ public class UnitTestNamingConventionRule extends AbstractJavaRule {
|
||||
"UnitTest",
|
||||
"jmhTest");
|
||||
|
||||
@Override
|
||||
public Object visit(ASTClassOrInterfaceDeclaration node, Object data) {
|
||||
String className = node.getImage();
|
||||
String className = node.getSimpleName();
|
||||
Objects.requireNonNull(className);
|
||||
|
||||
if (className.endsWith("SpringContextTest")) {
|
||||
|
||||
Reference in New Issue
Block a user