I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit b33a01cf authored by sponge's avatar sponge
Browse files

use index instead of upper and lower, it's the same thing, but makes more sense.

parent a4511ca2
No related branches found
No related tags found
No related merge requests found
...@@ -137,9 +137,9 @@ public class RandomIterator<E> implements Iterator<E> { ...@@ -137,9 +137,9 @@ public class RandomIterator<E> implements Iterator<E> {
if (hasNext()) { if (hasNext()) {
if (index == lower) if (index == lower)
// workaround for Android ICS bug - see below // workaround for Android ICS bug - see below
lower = isAndroid ? nextClearBit(lower) : served.nextClearBit(lower); lower = isAndroid ? nextClearBit(index) : served.nextClearBit(index);
else if (index == upper) else if (index == upper)
upper = previousClearBit(upper - 1); upper = previousClearBit(index - 1);
} }
return list.get(index); return list.get(index);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment