"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/codestyle/MethodNamingConventionsRule.java" between
pmd-src-6.37.0.zip and pmd-src-6.38.0.zip

About: PMD is a source code analyzer for Java, JavaScript, XML and others. It finds unused variables, empty catch blocks, unnecessary object creation, and so forth. Sources (Java).

MethodNamingConventionsRule.java  (pmd-src-6.37.0):MethodNamingConventionsRule.java  (pmd-src-6.38.0)
skipping to change at line 49 skipping to change at line 49
definePropertyDescriptor(instanceRegex); definePropertyDescriptor(instanceRegex);
definePropertyDescriptor(staticRegex); definePropertyDescriptor(staticRegex);
definePropertyDescriptor(nativeRegex); definePropertyDescriptor(nativeRegex);
definePropertyDescriptor(junit3Regex); definePropertyDescriptor(junit3Regex);
definePropertyDescriptor(junit4Regex); definePropertyDescriptor(junit4Regex);
definePropertyDescriptor(junit5Regex); definePropertyDescriptor(junit5Regex);
} }
private boolean isJunit5Test(ASTMethodDeclaration node) { private boolean isJunit5Test(ASTMethodDeclaration node) {
return node.isAnnotationPresent("org.junit.jupiter.api.Test"); return node.isAnnotationPresent("org.junit.jupiter.api.Test") || node.is AnnotationPresent("org.junit.jupiter.params.ParameterizedTest");
} }
private boolean isJunit4Test(ASTMethodDeclaration node) { private boolean isJunit4Test(ASTMethodDeclaration node) {
return node.isAnnotationPresent("org.junit.Test"); return node.isAnnotationPresent("org.junit.Test");
} }
private boolean isJunit3Test(ASTMethodDeclaration node) { private boolean isJunit3Test(ASTMethodDeclaration node) {
if (!node.getName().startsWith("test")) { if (!node.getName().startsWith("test")) {
return false; return false;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)