fixed sonar rule violations

This commit is contained in:
wenshao
2012-08-29 15:36:45 +08:00
parent c96af1628e
commit 5c6d5fcadc
17 changed files with 206 additions and 211 deletions
@@ -50,8 +50,9 @@ public class SQLBetweenExpr extends SQLExprImpl implements Serializable {
public void output(StringBuffer buf) {
this.testExpr.output(buf);
if (this.not) buf.append(" NOT BETWEEN ");
else {
if (this.not) {
buf.append(" NOT BETWEEN ");
} else {
buf.append(" BETWEEN ");
}
this.beginExpr.output(buf);
@@ -72,8 +72,9 @@ public class SQLInListExpr extends SQLExprImpl implements Serializable {
public void output(StringBuffer buf) {
this.expr.output(buf);
if (this.not) buf.append("NOT IN ");
else {
if (this.not) {
buf.append("NOT IN ");
} else {
buf.append("IN ");
}