We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b17208 commit 66f2911Copy full SHA for 66f2911
java/ql/src/Violations of Best Practice/Implementation Hiding/VisibleForTestingAbuse.ql
@@ -20,10 +20,7 @@ import java
20
*/
21
predicate isWithinType(Callable c, RefType t) {
22
// Either the callable is in the target type, or they share a common enclosing type
23
- exists(RefType commonType |
24
- (c.getDeclaringType() = commonType or c.getDeclaringType().getEnclosingType*() = commonType) and
25
- (t = commonType or t.getEnclosingType*() = commonType)
26
- )
+ c.getDeclaringType().getEnclosingType*() = t.getEnclosingType*()
27
}
28
29
/**
0 commit comments