Skip to content

Commit 60c7003

Browse files
author
Benjamin Muskalla
committed
Optimize return type check
1 parent fda3948 commit 60c7003

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

java/ql/src/Telemetry/ExternalAPI.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ class ExternalAPI extends Callable {
99

1010
predicate isInteresting() {
1111
getNumberOfParameters() > 0 and
12-
not (
13-
getReturnType() instanceof VoidType or
14-
getReturnType() instanceof PrimitiveType or
15-
getReturnType() instanceof BoxedType
12+
exists(Type retType | retType = getReturnType() |
13+
not retType instanceof VoidType and
14+
not retType instanceof PrimitiveType and
15+
not retType instanceof BoxedType
1616
)
1717
}
1818

0 commit comments

Comments
 (0)