mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Optimize return type check
This commit is contained in:
@@ -9,10 +9,10 @@ class ExternalAPI extends Callable {
|
||||
|
||||
predicate isInteresting() {
|
||||
getNumberOfParameters() > 0 and
|
||||
not (
|
||||
getReturnType() instanceof VoidType or
|
||||
getReturnType() instanceof PrimitiveType or
|
||||
getReturnType() instanceof BoxedType
|
||||
exists(Type retType | retType = getReturnType() |
|
||||
not retType instanceof VoidType and
|
||||
not retType instanceof PrimitiveType and
|
||||
not retType instanceof BoxedType
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user