added support for Berkeley DB 4.5.20

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@480800 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Vajda 2006-11-30 01:28:11 +00:00
parent 2b39422870
commit 63d2e582ad
2 changed files with 3 additions and 3 deletions

View File

@ -168,7 +168,7 @@ public class DbDirectory extends Directory {
try {
try {
DatabaseEntry key = new DatabaseEntry(new byte[0]);
DatabaseEntry data = new DatabaseEntry(null);
DatabaseEntry data = new DatabaseEntry((byte[]) null);
data.setPartial(true);

View File

@ -65,7 +65,7 @@ public class File extends Object {
else
{
DatabaseEntry key = new DatabaseEntry(new byte[24]);
DatabaseEntry data = new DatabaseEntry(null);
DatabaseEntry data = new DatabaseEntry((byte[]) null);
Db blocks = directory.blocks;
DbTxn txn = directory.txn;
int flags = directory.flags;
@ -201,7 +201,7 @@ public class File extends Object {
int ulen = bytes.length + 8;
byte[] cursorBytes = new byte[ulen];
DatabaseEntry cursorKey = new DatabaseEntry(cursorBytes);
DatabaseEntry cursorData = new DatabaseEntry(null);
DatabaseEntry cursorData = new DatabaseEntry((byte[]) null);
Db files = directory.files;
Db blocks = directory.blocks;
DbTxn txn = directory.txn;