diff --git a/contrib/db/bdb/src/java/org/apache/lucene/store/db/DbDirectory.java b/contrib/db/bdb/src/java/org/apache/lucene/store/db/DbDirectory.java index 814fac12df7..f1abdaa15ce 100644 --- a/contrib/db/bdb/src/java/org/apache/lucene/store/db/DbDirectory.java +++ b/contrib/db/bdb/src/java/org/apache/lucene/store/db/DbDirectory.java @@ -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); diff --git a/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java b/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java index 8a9dc8053b2..75c79e9b99e 100644 --- a/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java +++ b/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java @@ -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;