We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 205dd1a commit f477e09Copy full SHA for f477e09
java/ql/src/semmle/code/java/Generics.qll
@@ -194,7 +194,10 @@ 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 an upper bound.
200
+ */
201
predicate hasUpperBound() { wildcards(this, _, 1) }
202
203
/** Holds if this wildcard has a lower bound. */
0 commit comments