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 c20d763 + 0e54b49 commit e3a12c5Copy full SHA for e3a12c5
java/ql/src/semmle/code/java/Generics.qll
@@ -194,7 +194,16 @@ class TypeVariable extends BoundedType, @typevariable {
194
* and the second wildcard has a lower bound of `Float`.
195
*/
196
class Wildcard extends BoundedType, @wildcard {
197
- /** Holds if this wildcard has an upper bound. */
+ /**
198
+ * Holds if this wildcard is either unconstrained (i.e. `?`) or
199
+ * has a type bound.
200
+ */
201
+ override predicate hasTypeBound() { BoundedType.super.hasTypeBound() }
202
+
203
204
205
+ * has an upper bound.
206
207
predicate hasUpperBound() { wildcards(this, _, 1) }
208
209
/** Holds if this wildcard has a lower bound. */
0 commit comments