File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ public final class ByteArrayProxy extends BufferProxy<byte[]> {
4040
4141 private static final MemoryManager MEM_MGR = RUNTIME .getMemoryManager ();
4242
43+ private ByteArrayProxy () {
44+ }
45+
4346 /**
4447 * Lexicographically compare two byte arrays.
4548 *
Original file line number Diff line number Diff line change 6060import org .junit .Rule ;
6161import org .junit .Test ;
6262import org .junit .rules .TemporaryFolder ;
63+ import static org .lmdbjava .ByteArrayProxy .PROXY_BA ;
6364import static org .lmdbjava .ByteBufferProxy .PROXY_OPTIMAL ;
6465import org .lmdbjava .CursorIterable .KeyVal ;
6566import org .lmdbjava .Dbi .DbFullException ;
@@ -327,7 +328,7 @@ public void putCommitGet() {
327328 @ Test
328329 public void putCommitGetByteArray () throws IOException {
329330 final File path = tmp .newFile ();
330- try (Env <byte []> envBa = create (new ByteArrayProxy () )
331+ try (Env <byte []> envBa = create (PROXY_BA )
331332 .setMapSize (MEBIBYTES .toBytes (64 ))
332333 .setMaxReaders (1 )
333334 .setMaxDbs (2 )
You can’t perform that action at this time.
0 commit comments