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 6e57e45 + a3fc463 commit 28e4224Copy full SHA for 28e4224
java/ql/lib/semmle/code/java/JDK.qll
@@ -141,7 +141,8 @@ class TypeNumber extends RefType {
141
142
/** A (reflexive, transitive) subtype of `java.lang.Number`. */
143
class NumberType extends RefType {
144
- NumberType() { exists(TypeNumber number | hasDescendant(number, this)) }
+ pragma[nomagic]
145
+ NumberType() { this.getASupertype*() instanceof TypeNumber }
146
}
147
148
/** An immutable type. */
0 commit comments