Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit83c3a62

Browse files
committed
Add missing@OverRide, remove commented code
1 parentdb1b91b commit83c3a62

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

‎src/test/java/org/lmdbjava/ComparatorTest.java‎

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -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. */
284260
privateinterfaceComparatorRunnerextendsComparator<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
294271
intcompare(byte[]o1,byte[]o2);
295272
}
296273
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp