提交 cbb0f5c3 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Remove two unused assignments

上级 1e4a725b
...@@ -125,8 +125,7 @@ public class CreateTable extends CommandWithColumns { ...@@ -125,8 +125,7 @@ public class CreateTable extends CommandWithColumns {
try { try {
session.setUndoLogEnabled(false); session.setUndoLogEnabled(false);
session.startStatementWithinTransaction(); session.startStatementWithinTransaction();
Insert insert = null; Insert insert = new Insert(session);
insert = new Insert(session);
insert.setSortedInsertMode(sortedInsertMode); insert.setSortedInsertMode(sortedInsertMode);
insert.setQuery(asQuery); insert.setQuery(asQuery);
insert.setTable(table); insert.setTable(table);
......
...@@ -747,7 +747,7 @@ public final class DataUtils { ...@@ -747,7 +747,7 @@ public final class DataUtils {
} }
if (i++ - startKey == keyLength && s.regionMatches(startKey, key, 0, keyLength)) { if (i++ - startKey == keyLength && s.regionMatches(startKey, key, 0, keyLength)) {
StringBuilder buff = new StringBuilder(); StringBuilder buff = new StringBuilder();
i = parseMapValue(buff, s, i, size); parseMapValue(buff, s, i, size);
return buff.toString(); return buff.toString();
} else { } else {
while (i < size) { while (i < size) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论