equal
deleted
inserted
replaced
140 } |
140 } |
141 private static String message(String message, Object obj, Object obj2) { |
141 private static String message(String message, Object obj, Object obj2) { |
142 if (obj != null || obj2 != null) message = message + ": " + obj + ", " + obj2; |
142 if (obj != null || obj2 != null) message = message + ": " + obj + ", " + obj2; |
143 return message; |
143 return message; |
144 } |
144 } |
|
145 /*non-public*/ static void rangeCheck2(int start, int end, int size) { |
|
146 if (0 > start || start > end || end > size) |
|
147 throw new IndexOutOfBoundsException(start+".."+end); |
|
148 } |
|
149 /*non-public*/ static int rangeCheck1(int index, int size) { |
|
150 if (0 > index || index >= size) |
|
151 throw new IndexOutOfBoundsException(index); |
|
152 return index; |
|
153 } |
145 } |
154 } |