提交 bc55fb40 authored 作者: Thomas Mueller's avatar Thomas Mueller

Finalize was never called, because the thread references the object.

上级 a033c81e
...@@ -17,7 +17,6 @@ import java.net.UnknownHostException; ...@@ -17,7 +17,6 @@ import java.net.UnknownHostException;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.Properties; import java.util.Properties;
import org.h2.constant.ErrorCode; import org.h2.constant.ErrorCode;
import org.h2.constant.SysProperties;
import org.h2.engine.Constants; import org.h2.engine.Constants;
import org.h2.engine.SessionRemote; import org.h2.engine.SessionRemote;
import org.h2.jdbc.JdbcSQLException; import org.h2.jdbc.JdbcSQLException;
...@@ -180,18 +179,6 @@ public class FileLock { ...@@ -180,18 +179,6 @@ public class FileLock {
} }
} }
/**
* This finalizer unlocks the file if necessary.
*/
protected void finalize() {
if (!SysProperties.runFinalize) {
return;
}
if (locked) {
unlock();
}
}
/** /**
* Save the lock file. * Save the lock file.
* *
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论