Skip to content

Commit d8224e7

Browse files
committed
Literal formatting only
1 parent c9161e1 commit d8224e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/lmdbjava/Verifier.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public final class Verifier implements Callable<Long> {
8282
*/
8383
public static final int DBI_COUNT = 5;
8484
private static final int BATCH_SIZE = 64;
85-
private static final int BUFFER_LEN = 1024 * BATCH_SIZE;
85+
private static final int BUFFER_LEN = 1_024 * BATCH_SIZE;
8686
private static final int CRC_LENGTH = Long.BYTES;
8787
private static final int KEY_LENGTH = Long.BYTES;
8888
private final byte[] ba = new byte[BUFFER_LEN];
@@ -269,7 +269,7 @@ private void updateValue(final long forId) {
269269

270270
private int valueSize(final long forId) {
271271
final int mod = (int) (forId % BATCH_SIZE);
272-
final int base = 1024 * mod;
272+
final int base = 1_024 * mod;
273273
final int value = base == 0 ? 512 : base;
274274
return value - CRC_LENGTH - KEY_LENGTH; // aim to minimise partial pages
275275
}

src/test/java/org/lmdbjava/DbiTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void dbiWithComparatorThreadSafety() {
147147
final Dbi<ByteBuffer> db = env.openDbi(DB_1, PROXY_OPTIMAL::compare,
148148
MDB_CREATE);
149149

150-
final List<Integer> keys = range(0, 1000).boxed().collect(toList());
150+
final List<Integer> keys = range(0, 1_000).boxed().collect(toList());
151151

152152
final ExecutorService pool = Executors.newCachedThreadPool();
153153
final AtomicBoolean proceed = new AtomicBoolean(true);

0 commit comments

Comments
 (0)