You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by su...@apache.org on 2022/12/02 16:20:16 UTC
[shardingsphere] branch master updated: Remove useless SQLParserParameterizedArray (#22610)
This is an automated email from the ASF dual-hosted git repository.
sunnianjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 3b43b7116f3 Remove useless SQLParserParameterizedArray (#22610)
3b43b7116f3 is described below
commit 3b43b7116f381e2a0162ed2017e8834e87ab5b28
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sat Dec 3 00:20:08 2022 +0800
Remove useless SQLParserParameterizedArray (#22610)
---
.../sql/parser/SQLParserParameterizedArray.java | 38 ----------------------
.../param/ExternalSQLParserParameterizedArray.java | 3 +-
.../param/InternalSQLParserParameterizedArray.java | 3 +-
3 files changed, 2 insertions(+), 42 deletions(-)
diff --git a/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/SQLParserParameterizedArray.java b/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/SQLParserParameterizedArray.java
deleted file mode 100644
index e866a821a2d..00000000000
--- a/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/SQLParserParameterizedArray.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.sql.parser;
-
-/**
- * SQL parser parameterized array.
- */
-public interface SQLParserParameterizedArray {
-
- /**
- * Get SQL case ID.
- *
- * @return SQL case ID
- */
- String getSqlCaseId();
-
- /**
- * Get database type.
- *
- * @return database type
- */
- String getDatabaseType();
-}
diff --git a/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/external/engine/param/ExternalSQLParserParameterizedArray.java b/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/external/engine/param/ExternalSQLParserParameterizedArray.java
index 8c8dd26e567..176dadc5f75 100644
--- a/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/external/engine/param/ExternalSQLParserParameterizedArray.java
+++ b/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/external/engine/param/ExternalSQLParserParameterizedArray.java
@@ -19,14 +19,13 @@ package org.apache.shardingsphere.test.sql.parser.external.engine.param;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
-import org.apache.shardingsphere.test.sql.parser.SQLParserParameterizedArray;
/**
* External SQL parser parameterized array.
*/
@RequiredArgsConstructor
@Getter
-public final class ExternalSQLParserParameterizedArray implements SQLParserParameterizedArray {
+public final class ExternalSQLParserParameterizedArray {
private final String sqlCaseId;
diff --git a/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/internal/engine/param/InternalSQLParserParameterizedArray.java b/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/internal/engine/param/InternalSQLParserParameterizedArray.java
index 29c391c8100..92cffa61e1a 100644
--- a/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/internal/engine/param/InternalSQLParserParameterizedArray.java
+++ b/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/internal/engine/param/InternalSQLParserParameterizedArray.java
@@ -19,7 +19,6 @@ package org.apache.shardingsphere.test.sql.parser.internal.engine.param;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
-import org.apache.shardingsphere.test.sql.parser.SQLParserParameterizedArray;
import org.apache.shardingsphere.test.sql.parser.internal.cases.sql.type.SQLCaseType;
/**
@@ -27,7 +26,7 @@ import org.apache.shardingsphere.test.sql.parser.internal.cases.sql.type.SQLCase
*/
@RequiredArgsConstructor
@Getter
-public final class InternalSQLParserParameterizedArray implements SQLParserParameterizedArray {
+public final class InternalSQLParserParameterizedArray {
private final String sqlCaseId;