Skip to content

Commit d54528d

Browse files
committed
INTERNAL: remove reverse local variable.
1 parent ae6878e commit d54528d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/main/java/net/spy/memcached/ArcusClient.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2505,32 +2505,28 @@ public void gotData(String bkey, int flags, byte[] data, byte[] eflag) {
25052505
public CollectionFuture<Map<Integer, Element<Object>>> asyncBopGetByPosition(
25062506
String key, BTreeOrder order, int pos) {
25072507
BTreeGetByPosition get = new BTreeGetByPosition(order, pos);
2508-
boolean reverse = false;
2509-
return asyncBopGetByPosition(key, get, reverse, collectionTranscoder);
2508+
return asyncBopGetByPosition(key, get, false, collectionTranscoder);
25102509
}
25112510

25122511
@Override
25132512
public <T> CollectionFuture<Map<Integer, Element<T>>> asyncBopGetByPosition(
25142513
String key, BTreeOrder order, int pos, Transcoder<T> tc) {
25152514
BTreeGetByPosition get = new BTreeGetByPosition(order, pos);
2516-
boolean reverse = false;
2517-
return asyncBopGetByPosition(key, get, reverse, tc);
2515+
return asyncBopGetByPosition(key, get, false, tc);
25182516
}
25192517

25202518
@Override
25212519
public CollectionFuture<Map<Integer, Element<Object>>> asyncBopGetByPosition(
25222520
String key, BTreeOrder order, int from, int to) {
25232521
BTreeGetByPosition get = new BTreeGetByPosition(order, from, to);
2524-
boolean reverse = from > to;
2525-
return asyncBopGetByPosition(key, get, reverse, collectionTranscoder);
2522+
return asyncBopGetByPosition(key, get, from > to, collectionTranscoder);
25262523
}
25272524

25282525
@Override
25292526
public <T> CollectionFuture<Map<Integer, Element<T>>> asyncBopGetByPosition(
25302527
String key, BTreeOrder order, int from, int to, Transcoder<T> tc) {
25312528
BTreeGetByPosition get = new BTreeGetByPosition(order, from, to);
2532-
boolean reverse = from > to;
2533-
return asyncBopGetByPosition(key, get, reverse, tc);
2529+
return asyncBopGetByPosition(key, get, from > to, tc);
25342530
}
25352531

25362532
/**

0 commit comments

Comments
 (0)