We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06b1cd9 commit 121fd08Copy full SHA for 121fd08
1 file changed
java/ql/lib/semmle/code/java/dataflow/internal/ModelExclusions.qll
@@ -53,10 +53,16 @@ private predicate isJdkInternal(CompilationUnit cu) {
53
cu.getPackage().getName() = ""
54
}
55
56
+/** Holds if the given compilation unit's package is internal. */
57
+private predicate isInternal(CompilationUnit cu) {
58
+ isJdkInternal(cu) or
59
+ cu.getPackage().getName().matches("%internal%")
60
+}
61
+
62
/** Holds if the given callable is not worth modeling. */
63
predicate isUninterestingForModels(Callable c) {
64
isInTestFile(c.getCompilationUnit().getFile()) or
- isJdkInternal(c.getCompilationUnit()) or
65
+ isInternal(c.getCompilationUnit()) or
66
c instanceof MainMethod or
67
c instanceof StaticInitializer or
68
exists(FunctionalExpr funcExpr | c = funcExpr.asMethod()) or
0 commit comments