Bugfix: incorrect bounds check in IntegerRange
This commit is contained in:
@@ -27,11 +27,11 @@ public class IntegerRange {
|
||||
}
|
||||
|
||||
public boolean isTooLarge(int x) {
|
||||
return upperBound==null || x > upperBound;
|
||||
return upperBound!=null && x > upperBound;
|
||||
}
|
||||
|
||||
public boolean isTooSmall(int x) {
|
||||
return lowerBound==null || x < lowerBound;
|
||||
return lowerBound!=null && x < lowerBound;
|
||||
}
|
||||
|
||||
private IntegerRange(Integer lowerBound, Integer upperBound) {
|
||||
|
||||
Reference in New Issue
Block a user