panacekcz / checker-framework

Pluggable type-checking for Java
http://checkerframework.org/
Other
0 stars 0 forks source link

Refinement of upper bound by != #12

Closed panacekcz closed 7 years ago

panacekcz commented 7 years ago

Currently, upper bound @LTEqLengthOf("a") is refined by !=a.length to @LTLengthOf("a"). Similarly @LTLengthOf("a") can be refined by !=a.length-1 to @LTLengthOf(value="a",offset="1"), and for other constant offsets as well.