@@ -256,30 +256,6 @@ public int compare(final byte[] o1, final byte[] o2) {
256256 }
257257 }
258258
259- // /** Converts an integer result code into its contractual meaning. */
260- // enum ComparatorResult {
261- // LESS_THAN,
262- // EQUAL_TO,
263- // GREATER_THAN;
264- //
265- // static ComparatorResult get(final int comparatorResult) {
266- // if (comparatorResult == 0) {
267- // return EQUAL_TO;
268- // }
269- // return comparatorResult < 0 ? LESS_THAN : GREATER_THAN;
270- // }
271- //
272- // ComparatorResult opposite() {
273- // if (this == LESS_THAN) {
274- // return GREATER_THAN;
275- // } else if (this == GREATER_THAN) {
276- // return LESS_THAN;
277- // } else {
278- // return EQUAL_TO;
279- // }
280- // }
281- // }
282-
283259/** Interface that can test a {@link BufferProxy} <code>compare</code> method. */
284260private interface ComparatorRunner extends Comparator <byte []> {
285261
@@ -291,6 +267,7 @@ private interface ComparatorRunner extends Comparator<byte[]> {
291267 * @param o2 rhs buffer content
292268 * @return as per {@link Comparable}
293269 */
270+ @ Override
294271int compare (byte []o1 ,byte []o2 );
295272 }
296273}