File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
java/ql/lib/semmle/code/java/dataflow/internal Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,16 @@ private predicate isJdkInternal(CompilationUnit cu) {
53
53
cu .getPackage ( ) .getName ( ) = ""
54
54
}
55
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
+
56
62
/** Holds if the given callable is not worth modeling. */
57
63
predicate isUninterestingForModels ( Callable c ) {
58
64
isInTestFile ( c .getCompilationUnit ( ) .getFile ( ) ) or
59
- isJdkInternal ( c .getCompilationUnit ( ) ) or
65
+ isInternal ( c .getCompilationUnit ( ) ) or
60
66
c instanceof MainMethod or
61
67
c instanceof StaticInitializer or
62
68
exists ( FunctionalExpr funcExpr | c = funcExpr .asMethod ( ) ) or
You can’t perform that action at this time.
0 commit comments