mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fixed sonar rule violations
This commit is contained in:
@@ -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 ");
|
||||
}
|
||||
|
||||
|
||||
@@ -100,9 +100,11 @@ public class SQLSelectQueryBlock extends SQLSelectQuery {
|
||||
public void output(StringBuffer buf) {
|
||||
buf.append("SELECT ");
|
||||
|
||||
if (SQLSetQuantifier.ALL == this.distionOption) buf.append("ALL ");
|
||||
else if (SQLSetQuantifier.DISTINCT == this.distionOption) buf.append("DISTINCT ");
|
||||
else if (SQLSetQuantifier.UNIQUE == this.distionOption) {
|
||||
if (SQLSetQuantifier.ALL == this.distionOption) {
|
||||
buf.append("ALL ");
|
||||
} else if (SQLSetQuantifier.DISTINCT == this.distionOption) {
|
||||
buf.append("DISTINCT ");
|
||||
} else if (SQLSetQuantifier.UNIQUE == this.distionOption) {
|
||||
buf.append("UNIQUE ");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user