mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SegmentArrayWithData: assertion range extended to allow negative shorts
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ public class SegmentArrayWithData extends SegmentArray {
|
||||
}
|
||||
|
||||
public void setElementAt(int i, int startOffset, int endOffset, int data) {
|
||||
if (data < 0 && data > Short.MAX_VALUE) {
|
||||
if (data < Short.MIN_VALUE || data > Short.MAX_VALUE) {
|
||||
throw new IndexOutOfBoundsException("data out of short range: " + data);
|
||||
}
|
||||
setElementAt(i, startOffset, endOffset);
|
||||
|
||||
Reference in New Issue
Block a user