From a15169f2e9f4729c73d207862cb0c79f1e7d322c Mon Sep 17 00:00:00 2001 From: fyrz Date: Tue, 25 Nov 2014 22:30:35 +0100 Subject: [PATCH] Fixed a Lint problem --- java/org/rocksdb/test/AbstractComparatorTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/org/rocksdb/test/AbstractComparatorTest.java b/java/org/rocksdb/test/AbstractComparatorTest.java index 04abeb34d..9d1f2fc64 100644 --- a/java/org/rocksdb/test/AbstractComparatorTest.java +++ b/java/org/rocksdb/test/AbstractComparatorTest.java @@ -135,7 +135,8 @@ public abstract class AbstractComparatorTest { final Random random = new Random(); for (int i = 0; i < ITERATIONS; i++) { 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 } else { db.put(cfHandles.get(1), key, "value".getBytes());