You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it's not possible to write @LessThan - for instance, when the return type of a method is @GreaterThan("#1"). Consider the following example from Guava (>= 16 false positives):
private static @GreaterThan("#3 - 1") @IndexOrLow("#1") int indexOf(
short[] array, short target, @IndexOrHigh("#1") int start, @IndexOrHigh("#1") int end) {
for (int i = start; i < end; i++) {
if (array[i] == target) {
return i;
}
}
return -1;
}
The text was updated successfully, but these errors were encountered:
Sometimes it's not possible to write
@LessThan
- for instance, when the return type of a method is@GreaterThan("#1")
. Consider the following example from Guava (>= 16 false positives):The text was updated successfully, but these errors were encountered: