You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by to...@apache.org on 2022/05/06 02:53:45 UTC
[shardingsphere] branch master updated: Remove useless DecrementKeyGenerateAlgorithm in integration-driver-test module (#17362)
This is an automated email from the ASF dual-hosted git repository.
totalo 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 71d44405a0d Remove useless DecrementKeyGenerateAlgorithm in integration-driver-test module (#17362)
71d44405a0d is described below
commit 71d44405a0d6404e698153c0fc1c920ca2a99471
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Fri May 6 10:53:38 2022 +0800
Remove useless DecrementKeyGenerateAlgorithm in integration-driver-test module (#17362)
---
.../keygen/DecrementKeyGenerateAlgorithm.java | 37 ----------------------
...hardingsphere.sharding.spi.KeyGenerateAlgorithm | 3 --
2 files changed, 40 deletions(-)
diff --git a/shardingsphere-test/shardingsphere-integration-driver-test/src/test/java/org/apache/shardingsphere/driver/fixture/algorithm/keygen/DecrementKeyGenerateAlgorithm.java b/shardingsphere-test/shardingsphere-integration-driver-test/src/test/java/org/apache/shardingsphere/driver/fixture/algorithm/keygen/DecrementKeyGenerateAlgorithm.java
deleted file mode 100644
index ab9a24da3ac..00000000000
--- a/shardingsphere-test/shardingsphere-integration-driver-test/src/test/java/org/apache/shardingsphere/driver/fixture/algorithm/keygen/DecrementKeyGenerateAlgorithm.java
+++ /dev/null
@@ -1,37 +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.driver.fixture.algorithm.keygen;
-
-import org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm;
-
-import java.util.concurrent.atomic.AtomicInteger;
-
-public final class DecrementKeyGenerateAlgorithm implements KeyGenerateAlgorithm {
-
- private final AtomicInteger sequence = new AtomicInteger(100);
-
- @Override
- public Comparable<?> generateKey() {
- return sequence.decrementAndGet();
- }
-
- @Override
- public String getType() {
- return "DECREMENT";
- }
-}
diff --git a/shardingsphere-test/shardingsphere-integration-driver-test/src/test/resources/META-INF/services/org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm b/shardingsphere-test/shardingsphere-integration-driver-test/src/test/resources/META-INF/services/org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm
index 58008f8b36f..a2ac89afccc 100644
--- a/shardingsphere-test/shardingsphere-integration-driver-test/src/test/resources/META-INF/services/org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm
+++ b/shardingsphere-test/shardingsphere-integration-driver-test/src/test/resources/META-INF/services/org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm
@@ -15,7 +15,4 @@
# limitations under the License.
#
-org.apache.shardingsphere.sharding.algorithm.keygen.SnowflakeKeyGenerateAlgorithm
-org.apache.shardingsphere.sharding.algorithm.keygen.UUIDKeyGenerateAlgorithm
org.apache.shardingsphere.driver.fixture.algorithm.keygen.IncrementKeyGenerateAlgorithm
-org.apache.shardingsphere.driver.fixture.algorithm.keygen.DecrementKeyGenerateAlgorithm