mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02: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