JAVA-18132 Upgrade custom-pmd module to JDK 11 (#13500)
Co-authored-by: timis1 <noreplay@yahoo.com>
This commit is contained in:
parent
253c01ef4f
commit
cd3df938a0
|
@ -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")) {
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -340,7 +340,6 @@
|
|||
<module>core-groovy-modules</module>
|
||||
<module>core-java-modules</module>
|
||||
<module>couchbase</module>
|
||||
<module>custom-pmd</module>
|
||||
|
||||
<module>drools</module>
|
||||
<!-- <module>ethereum</module> --> <!-- JAVA-6001 -->
|
||||
|
@ -609,7 +608,6 @@
|
|||
<module>core-groovy-modules</module>
|
||||
<module>core-java-modules</module>
|
||||
<module>couchbase</module>
|
||||
<module>custom-pmd</module>
|
||||
<module>drools</module>
|
||||
<!-- <module>ethereum</module> --> <!-- JAVA-6001 -->
|
||||
<!-- <module>gradle-modules</module> --> <!-- Not a maven project -->
|
||||
|
@ -922,6 +920,7 @@
|
|||
<module>core-java-modules/core-java-networking-3</module>
|
||||
<module>core-java-modules/core-java-strings</module>
|
||||
<module>core-java-modules/core-java-httpclient</module>
|
||||
<module>custom-pmd</module>
|
||||
<module>spring-core-6</module>
|
||||
<module>data-structures</module>
|
||||
<module>ddd-contexts</module>
|
||||
|
@ -1131,6 +1130,7 @@
|
|||
<module>core-java-modules/core-java-networking-3</module>
|
||||
<module>core-java-modules/core-java-strings</module>
|
||||
<module>core-java-modules/core-java-httpclient</module>
|
||||
<module>custom-pmd</module>
|
||||
<module>spring-core-6</module>
|
||||
<module>data-structures</module>
|
||||
<module>ddd-contexts</module>
|
||||
|
|
Loading…
Reference in New Issue