From e3376cff6a5590b8b50c1b6debb9d2ca050db2ac Mon Sep 17 00:00:00 2001 From: JiaqiYan Date: Thu, 2 Nov 2023 20:37:15 +0800 Subject: [PATCH] format code --- .../visitor/statement/type/OracleDDLStatementVisitor.java | 4 ++-- .../sql/parser/core/database/visitor/SQLVisitorRule.java | 2 +- .../internal/cases/parser/jaxb/RootSQLParserTestCases.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parser/sql/dialect/oracle/src/main/java/org/apache/shardingsphere/sql/parser/oracle/visitor/statement/type/OracleDDLStatementVisitor.java b/parser/sql/dialect/oracle/src/main/java/org/apache/shardingsphere/sql/parser/oracle/visitor/statement/type/OracleDDLStatementVisitor.java index c70ea557f5cf3..fb6b1293f158a 100644 --- a/parser/sql/dialect/oracle/src/main/java/org/apache/shardingsphere/sql/parser/oracle/visitor/statement/type/OracleDDLStatementVisitor.java +++ b/parser/sql/dialect/oracle/src/main/java/org/apache/shardingsphere/sql/parser/oracle/visitor/statement/type/OracleDDLStatementVisitor.java @@ -1344,10 +1344,10 @@ public ASTNode visitAlterType(final AlterTypeContext ctx) { public ASTNode visitCreateJava(final CreateJavaContext ctx) { return new OracleCreateJavaStatement(); } - + @Override public ASTNode visitSwitch(final SwitchContext ctx) { return new OracleSwitchStatement(); } - + } diff --git a/parser/sql/engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java b/parser/sql/engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java index 44974836fc10e..473da5b6d3cf5 100644 --- a/parser/sql/engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java +++ b/parser/sql/engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java @@ -700,7 +700,7 @@ public enum SQLVisitorRule { PLSQL_BLOCK("PlsqlBlock", SQLStatementType.DDL), SWITCH("Switch", SQLStatementType.DDL); - + private final String name; @Getter diff --git a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/RootSQLParserTestCases.java b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/RootSQLParserTestCases.java index ced25fa093d26..67974bdb86a92 100644 --- a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/RootSQLParserTestCases.java +++ b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/RootSQLParserTestCases.java @@ -1719,7 +1719,7 @@ public final class RootSQLParserTestCases { @XmlElement(name = "switch") private final List switchStatementTestCases = new LinkedList<>(); - + /** * Get all SQL parser test cases. *