This is an automated email from the ASF dual-hosted git repository.

zhaojinchao 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 0b8dafa5d00 Remove useless TypedSPI's default init methods (#23986)
0b8dafa5d00 is described below

commit 0b8dafa5d000f5ec6699960d18989973e6368137
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Feb 4 00:54:04 2023 +0800

    Remove useless TypedSPI's default init methods (#23986)
---
 .../java/org/apache/shardingsphere/authority/rule/AuthorityRule.java | 2 +-
 .../shardingsphere/timeservice/type/system/SystemTimeService.java    | 5 -----
 .../standalone/fixture/StandalonePersistRepositoryFixture.java       | 5 -----
 3 files changed, 1 insertion(+), 11 deletions(-)

diff --git 
a/kernel/authority/core/src/main/java/org/apache/shardingsphere/authority/rule/AuthorityRule.java
 
b/kernel/authority/core/src/main/java/org/apache/shardingsphere/authority/rule/AuthorityRule.java
index 45c3a4ddd9b..714bf2ebb63 100644
--- 
a/kernel/authority/core/src/main/java/org/apache/shardingsphere/authority/rule/AuthorityRule.java
+++ 
b/kernel/authority/core/src/main/java/org/apache/shardingsphere/authority/rule/AuthorityRule.java
@@ -64,7 +64,7 @@ public final class AuthorityRule implements GlobalRule {
     }
     
     /**
-     * Find Privileges.
+     * Find privileges.
      *
      * @param grantee grantee
      * @return found privileges
diff --git 
a/kernel/time-service/type/system/src/main/java/org/apache/shardingsphere/timeservice/type/system/SystemTimeService.java
 
b/kernel/time-service/type/system/src/main/java/org/apache/shardingsphere/timeservice/type/system/SystemTimeService.java
index efa7357a2ac..d67c17a346e 100644
--- 
a/kernel/time-service/type/system/src/main/java/org/apache/shardingsphere/timeservice/type/system/SystemTimeService.java
+++ 
b/kernel/time-service/type/system/src/main/java/org/apache/shardingsphere/timeservice/type/system/SystemTimeService.java
@@ -20,17 +20,12 @@ package org.apache.shardingsphere.timeservice.type.system;
 import org.apache.shardingsphere.timeservice.spi.ShardingSphereTimeService;
 
 import java.util.Date;
-import java.util.Properties;
 
 /**
  * System time service.
  */
 public final class SystemTimeService implements ShardingSphereTimeService {
     
-    @Override
-    public void init(final Properties props) {
-    }
-    
     @Override
     public Date getDatetime() {
         return new Date();
diff --git 
a/mode/type/standalone/core/src/test/java/org/apache/shardingsphere/mode/manager/standalone/fixture/StandalonePersistRepositoryFixture.java
 
b/mode/type/standalone/core/src/test/java/org/apache/shardingsphere/mode/manager/standalone/fixture/StandalonePersistRepositoryFixture.java
index a56fdee4551..f5b5a0471dd 100644
--- 
a/mode/type/standalone/core/src/test/java/org/apache/shardingsphere/mode/manager/standalone/fixture/StandalonePersistRepositoryFixture.java
+++ 
b/mode/type/standalone/core/src/test/java/org/apache/shardingsphere/mode/manager/standalone/fixture/StandalonePersistRepositoryFixture.java
@@ -23,16 +23,11 @@ import java.util.HashMap;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
-import java.util.Properties;
 
 public final class StandalonePersistRepositoryFixture implements 
StandalonePersistRepository {
     
     private final Map<String, String> persistMap = new HashMap<>();
     
-    @Override
-    public void init(final Properties props) {
-    }
-    
     @Override
     public String getDirectly(final String key) {
         return persistMap.get(key);

Reply via email to