Skip to content

Commit 114c17a

Browse files
committed
Add more methods of java.util.Comparator
1 parent 5399d88 commit 114c17a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/ql/lib/semmle/code/java/dataflow/internal/ModelExclusions.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ private predicate isInternal(CompilationUnit cu) {
6363
private class LambdaFlowMethod extends Method {
6464
LambdaFlowMethod() {
6565
this.hasQualifiedName("java.lang", "Runnable", "run") or
66-
this.hasQualifiedName("java.util", "Comparator", "comparing") or
66+
this.hasQualifiedName("java.util", "Comparator",
67+
["comparing", "comparingDouble", "comparingInt", "comparingLong"]) or
6768
this.hasQualifiedName("java.util.function", "BiConsumer", "accept") or
6869
this.hasQualifiedName("java.util.function", "BiFunction", "apply") or
6970
this.hasQualifiedName("java.util.function", "Consumer", "accept") or

0 commit comments

Comments
 (0)