提交 7fb2c292 authored 作者: noelgrandin's avatar noelgrandin

the field "small" can be declared final

上级 fdb4eb02
...@@ -45,7 +45,7 @@ public class ValueLobDb extends Value implements Value.ValueClob, Value.ValueBlo ...@@ -45,7 +45,7 @@ public class ValueLobDb extends Value implements Value.ValueClob, Value.ValueBlo
private final long lobId; private final long lobId;
private final byte[] hmac; private final byte[] hmac;
private byte[] small; private final byte[] small;
private DataHandler handler; private DataHandler handler;
private FileStore tempFile; private FileStore tempFile;
...@@ -58,6 +58,7 @@ public class ValueLobDb extends Value implements Value.ValueClob, Value.ValueBlo ...@@ -58,6 +58,7 @@ public class ValueLobDb extends Value implements Value.ValueClob, Value.ValueBlo
this.lobId = lobId; this.lobId = lobId;
this.hmac = hmac; this.hmac = hmac;
this.precision = precision; this.precision = precision;
this.small = null;
} }
private ValueLobDb(int type, byte[] small, long precision) { private ValueLobDb(int type, byte[] small, long precision) {
...@@ -533,7 +534,6 @@ public class ValueLobDb extends Value implements Value.ValueClob, Value.ValueBlo ...@@ -533,7 +534,6 @@ public class ValueLobDb extends Value implements Value.ValueClob, Value.ValueBlo
this.precision = 0; this.precision = 0;
this.handler = h; this.handler = h;
this.lobStorage = h.getLobStorage(); this.lobStorage = h.getLobStorage();
this.small = null;
String path = h.getDatabasePath(); String path = h.getDatabasePath();
if (path.length() == 0) { if (path.length() == 0) {
path = SysProperties.PREFIX_TEMP_FILE; path = SysProperties.PREFIX_TEMP_FILE;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论