Fixed a Lint problem
This commit is contained in:
parent
b7f9e644cc
commit
a15169f2e9
@ -135,7 +135,8 @@ public abstract class AbstractComparatorTest {
|
|||||||
final Random random = new Random();
|
final Random random = new Random();
|
||||||
for (int i = 0; i < ITERATIONS; i++) {
|
for (int i = 0; i < ITERATIONS; i++) {
|
||||||
final byte key[] = intToByte(random.nextInt());
|
final byte key[] = intToByte(random.nextInt());
|
||||||
if (i > 0 && db.get(cfHandles.get(1), key) != null) { // does key already exist (avoid duplicates)
|
if (i > 0 && db.get(cfHandles.get(1), key) != null) {
|
||||||
|
// does key already exist (avoid duplicates)
|
||||||
i--; // generate a different key
|
i--; // generate a different key
|
||||||
} else {
|
} else {
|
||||||
db.put(cfHandles.get(1), key, "value".getBytes());
|
db.put(cfHandles.get(1), key, "value".getBytes());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user