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

superfluous null checks

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