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 ");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user