Fix build

This commit is contained in:
Ankit Gupta 2014-06-05 13:34:38 +01:00
parent 2fa0a993b8
commit 1a6c1a5ddd
2 changed files with 6 additions and 10 deletions

View File

@ -68,11 +68,9 @@ public class RestoreBackupableDB extends RocksObject {
* Release the memory allocated for the current instance
* in the c++ side.
*/
@Override public synchronized void dispose() {
if (isInitialized()) {
dispose(nativeHandle_);
nativeHandle_ = 0;
}
@Override public synchronized void disposeInternal() {
assert(isInitialized());
dispose(nativeHandle_);
}
private native long newRestoreBackupableDB(long options);

View File

@ -27,11 +27,9 @@ public class RestoreOptions extends RocksObject {
* Release the memory allocated for the current instance
* in the c++ side.
*/
@Override public synchronized void dispose() {
if (isInitialized()) {
dispose(nativeHandle_);
nativeHandle_ = 0;
}
@Override public synchronized void disposeInternal() {
assert(isInitialized());
dispose(nativeHandle_);
}
private native long newRestoreOptions(boolean keepLogFiles);