Change multiple match calls to set literal

This commit is contained in:
Ed Minnix
2023-04-17 15:36:44 -04:00
parent 027f08a0df
commit d1de453c7a

View File

@@ -27,10 +27,8 @@ private J::Method superImpl(J::Method m) {
}
private predicate isInTestFile(J::File file) {
file.getAbsolutePath().matches("%src/test/%") or
file.getAbsolutePath().matches("%/guava-tests/%") or
file.getAbsolutePath().matches("%/guava-testlib/%") or
file.getAbsolutePath().matches("%/groovy-stubs/test/%")
file.getAbsolutePath()
.matches(["%src/test/%", "%/guava-tests/%", "%/guava-testlib/%", "%/groovy-stubs/test/%"])
}
private predicate isJdkInternal(J::CompilationUnit cu) {