Java: remove SkipFrameworkModeling characteristic in favour of later evaluation

This commit is contained in:
Stephan Brandauer
2023-06-07 13:58:56 +02:00
parent 2e16b71215
commit be6b1d8aaf

View File

@@ -294,32 +294,6 @@ private class ArgumentToLocalCall extends CharacteristicsImpl::UninterestingToMo
}
}
/**
* A characteristic that avoids modeling endpoint that are passed to frameworks
* in application mode.
*
* It's much more economical to use framework mode for those.
*/
private class SkipFrameworkModeling extends CharacteristicsImpl::UninterestingToModelCharacteristic {
SkipFrameworkModeling() { this = "skip modeling of large frameworks" }
override predicate appliesToEndpoint(Endpoint e) {
ApplicationCandidatesImpl::getCallable(e)
.getDeclaringType()
.getPackage()
.getName()
.matches([
"com.google%", //
"java.%", //
"javax.%", //
"org.apache%", //
"org.eclipse%", //
"org.gradle%", //
"org.slf4j%", //
])
}
}
/**
* A Characteristic that marks endpoints as uninteresting to model, according to the Java ModelExclusions module.
*/