File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/ql/src/Language Abuse Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class LikelyJunitTest extends Method {
47
47
(
48
48
this .getName ( ) .matches ( "JUnit%" ) or
49
49
this .getName ( ) .matches ( "test%" ) or
50
- this .getAnAnnotation ( ) .toString ( ) .matches ( "%Test" )
50
+ this .getAnAnnotation ( ) .getType ( ) . getName ( ) .matches ( "%Test" )
51
51
)
52
52
}
53
53
}
83
83
//permit comment lines explaining why this is empty
84
84
m .getNumberOfCommentLines ( ) = 0 and
85
85
//permit a javadoc above as well as sufficient reason to leave empty
86
- not exists ( Javadoc jd | m .getDoc ( ) .getJavadoc ( ) = jd ) and
86
+ not exists ( m .getDoc ( ) .getJavadoc ( ) ) and
87
87
//annotated methods are considered compliant
88
88
not exists ( m .getAnAnnotation ( ) ) and
89
89
//default methods are not abstract, but are considered compliant
You can’t perform that action at this time.
0 commit comments