File tree Expand file tree Collapse file tree
java/ql/lib/semmle/code/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,8 +73,6 @@ private predicate isNotNeeded(Element el) {
7373 // simply comparing their getLocation() doesn't work as they have distinct but equivalent locations
7474 )
7575 or
76- exists ( Callable c | el = c and c .getSourceDeclaration ( ) != c )
77- or
7876 isNotNeeded ( el .( Expr ) .getParent * ( ) .( Annotation ) .getAnnotatedElement ( ) )
7977 or
8078 isNotNeeded ( el .( Parameter ) .getCallable ( ) )
@@ -700,7 +698,7 @@ final class GenericTypeNode extends PrintAstNode, TGenericTypeNode {
700698final class GenericCallableNode extends PrintAstNode , TGenericCallableNode {
701699 GenericCallable c ;
702700
703- GenericCallableNode ( ) { this = TGenericCallableNode ( c ) and not isNotNeeded ( c ) }
701+ GenericCallableNode ( ) { this = TGenericCallableNode ( c ) }
704702
705703 override string toString ( ) { result = "(Generic Parameters)" }
706704
You can’t perform that action at this time.
0 commit comments