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 {
4747 (
4848 this .getName ( ) .matches ( "JUnit%" ) or
4949 this .getName ( ) .matches ( "test%" ) or
50- this .getAnAnnotation ( ) .toString ( ) .matches ( "%Test" )
50+ this .getAnAnnotation ( ) .getType ( ) . getName ( ) .matches ( "%Test" )
5151 )
5252 }
5353}
8383 //permit comment lines explaining why this is empty
8484 m .getNumberOfCommentLines ( ) = 0 and
8585 //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
8787 //annotated methods are considered compliant
8888 not exists ( m .getAnAnnotation ( ) ) and
8989 //default methods are not abstract, but are considered compliant
You can’t perform that action at this time.
0 commit comments