mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Avoid using for statements without using curly braces, like for (int i=0; i<42;i++) foo();
This commit is contained in:
@@ -48,8 +48,9 @@ public abstract class SQLObjectImpl implements SQLObject, Serializable {
|
||||
protected abstract void accept0(SQLASTVisitor visitor);
|
||||
|
||||
protected final void acceptChild(SQLASTVisitor visitor, List<? extends SQLObject> children) {
|
||||
for (SQLObject child : children)
|
||||
for (SQLObject child : children) {
|
||||
acceptChild(visitor, child);
|
||||
}
|
||||
}
|
||||
|
||||
protected final void acceptChild(SQLASTVisitor visitor, SQLObject child) {
|
||||
|
||||
@@ -187,8 +187,9 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter {
|
||||
}
|
||||
|
||||
public void printIndent() {
|
||||
for (int i = 0; i < this.indentCount; ++i)
|
||||
for (int i = 0; i < this.indentCount; ++i) {
|
||||
print(this.indent);
|
||||
}
|
||||
}
|
||||
|
||||
public void println() {
|
||||
|
||||
Reference in New Issue
Block a user