We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6464135 + 807f87e commit f2897f5Copy full SHA for f2897f5
java/ql/lib/semmle/code/java/dispatch/VirtualDispatch.qll
@@ -99,10 +99,12 @@ private module Dispatch {
99
private predicate lowConfidenceDispatchType(SrcRefType t) {
100
t instanceof TypeObject
101
or
102
- t instanceof FunctionalInterface
+ t instanceof Interface and not t.fromSource()
103
104
t.hasQualifiedName("java.io", "Serializable")
105
106
+ t.hasQualifiedName("java.lang", "Iterable")
107
+ or
108
t.hasQualifiedName("java.lang", "Cloneable")
109
110
t.getPackage().hasName("java.util") and t instanceof Interface
0 commit comments