| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,6 +40,9 @@ public final class ByteArrayProxy extends BufferProxy<byte[]> { | |||
| 40 | 40 | ||
| 41 | 41 | private static final MemoryManager MEM_MGR = RUNTIME.getMemoryManager(); | |
| 42 | 42 | ||
| 43 | + private ByteArrayProxy() { | ||
| 44 | + } | ||
| 45 | + | ||
| 43 | 46 | /** | |
| 44 | 47 | * Lexicographically compare two byte arrays. | |
| 45 | 48 | * | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,6 +60,7 @@ | |||
| 60 | 60 | import org.junit.Rule; | |
| 61 | 61 | import org.junit.Test; | |
| 62 | 62 | import org.junit.rules.TemporaryFolder; | |
| 63 | + import static org.lmdbjava.ByteArrayProxy.PROXY_BA; | ||
| 63 | 64 | import static org.lmdbjava.ByteBufferProxy.PROXY_OPTIMAL; | |
| 64 | 65 | import org.lmdbjava.CursorIterable.KeyVal; | |
| 65 | 66 | import org.lmdbjava.Dbi.DbFullException; | |
@@ -327,7 +328,7 @@ public void putCommitGet() { | |||
| 327 | 328 | @Test | |
| 328 | 329 | public void putCommitGetByteArray() throws IOException { | |
| 329 | 330 | final File path = tmp.newFile(); | |
| 330 | - try (Env<byte[]> envBa = create(new ByteArrayProxy()) | ||
| 331 | + try (Env<byte[]> envBa = create(PROXY_BA) | ||
| 331 | 332 | .setMapSize(MEBIBYTES.toBytes(64)) | |
| 332 | 333 | .setMaxReaders(1) | |
| 333 | 334 | .setMaxDbs(2) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments