File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments