提交 31f7cb05 authored 作者: noelgrandin@gmail.com's avatar noelgrandin@gmail.com

comparing String's using ==

found by CodePro
上级 e39b36d2
......@@ -364,7 +364,7 @@ public class Insert extends Prepared implements ResultTarget {
if (index.getIndexType().isPrimaryKey() || index.getIndexType().isUnique()) {
for (Column indexColumn : index.getColumns()) {
for (Column insertColumn : columns) {
if (indexColumn.getName() == insertColumn.getName()) {
if (indexColumn.getName().equals(insertColumn.getName())) {
foundIndex = index;
break;
}
......
......@@ -242,7 +242,7 @@ public class Indexer {
} else {
ws = "r";
}
if (ws != weightString) {
if (!ws.equals(weightString)) {
weightString = ws;
buff.append(ws);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论