提交 792ca140 authored 作者: Noel Grandin's avatar Noel Grandin

superfluous null checks

上级 ac2ce3fd
......@@ -1422,7 +1422,7 @@ public class MetaTable extends Table {
continue;
}
Table table = (Table) object;
if (table == null || hideTable(table, session)) {
if (hideTable(table, session)) {
continue;
}
String tableName = identifier(table.getName());
......@@ -1441,7 +1441,7 @@ public class MetaTable extends Table {
continue;
}
Table table = (Table) object;
if (table == null || hideTable(table, session)) {
if (hideTable(table, session)) {
continue;
}
String tableName = identifier(table.getName());
......
......@@ -630,9 +630,7 @@ public class DataType {
InputStream in = rs.getBinaryStream(columnIndex);
v = (in == null) ? (Value) ValueNull.INSTANCE :
session.getDataHandler().getLobStorage().createBlob(in, -1);
if (session != null) {
session.addTemporaryLob(v);
}
session.addTemporaryLob(v);
break;
}
case Value.JAVA_OBJECT: {
......
......@@ -16,7 +16,6 @@ import java.util.Collections;
import java.util.Comparator;
import java.util.Map.Entry;
import java.util.Random;
import org.h2.mvstore.Cursor;
import org.h2.mvstore.DataUtils;
import org.h2.mvstore.MVMap;
......@@ -134,7 +133,7 @@ public class ArchiveToolStore {
data.put(key, bytes);
break;
}
if (old != null && Arrays.equals(old, bytes)) {
if (Arrays.equals(old, bytes)) {
// duplicate
break;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论