提交 269bfd24 authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation

上级 eda01e44
...@@ -433,9 +433,7 @@ public class RegularTable extends TableBase { ...@@ -433,9 +433,7 @@ public class RegularTable extends TableBase {
} }
if (!force && database.isMultiVersion()) { if (!force && database.isMultiVersion()) {
// MVCC: update, delete, and insert use a shared lock. // MVCC: update, delete, and insert use a shared lock.
// Select doesn't lock except when using FOR UPDATE and // Select doesn't lock except when using FOR UPDATE
// the system property h2.selectForUpdateMvcc
// is not enabled
if (exclusive) { if (exclusive) {
exclusive = false; exclusive = false;
} else { } else {
......
...@@ -77,6 +77,7 @@ public class ScriptReader implements Closeable { ...@@ -77,6 +77,7 @@ public class ScriptReader implements Closeable {
/** /**
* Close the underlying reader. * Close the underlying reader.
*/ */
@Override
public void close() { public void close() {
try { try {
reader.close(); reader.close();
......
...@@ -916,6 +916,9 @@ public class StringUtils { ...@@ -916,6 +916,9 @@ public class StringUtils {
} }
// create a new object that is not shared // create a new object that is not shared
// (to avoid out of memory if it is a substring of a big String) // (to avoid out of memory if it is a substring of a big String)
// (not longer needed for Java 7 update 6 and newer,
// but the performance overhead is very small for those
// versions where it is not needed)
// NOPMD // NOPMD
s = new String(s); s = new String(s);
cache[index] = s; cache[index] = s;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论