Skip to content

Commit d1de453

Browse files
committed
Change multiple match calls to set literal
1 parent 027f08a commit d1de453

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

java/ql/src/utils/modelgenerator/internal/CaptureModelsSpecific.qll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ private J::Method superImpl(J::Method m) {
2727
}
2828

2929
private predicate isInTestFile(J::File file) {
30-
file.getAbsolutePath().matches("%src/test/%") or
31-
file.getAbsolutePath().matches("%/guava-tests/%") or
32-
file.getAbsolutePath().matches("%/guava-testlib/%") or
33-
file.getAbsolutePath().matches("%/groovy-stubs/test/%")
30+
file.getAbsolutePath()
31+
.matches(["%src/test/%", "%/guava-tests/%", "%/guava-testlib/%", "%/groovy-stubs/test/%"])
3432
}
3533

3634
private predicate isJdkInternal(J::CompilationUnit cu) {

0 commit comments

Comments
 (0)