You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by xi...@apache.org on 2021/02/25 11:38:14 UTC

[shardingsphere] branch master updated: Optimize ScalingAPIFactory (#9508)

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

xiaoyu 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 aa06dc4  Optimize ScalingAPIFactory (#9508)
aa06dc4 is described below

commit aa06dc42c2d70e5f1daf0d6a4292d351c16ee7ef
Author: 邱鹿 Lucas <lu...@163.com>
AuthorDate: Thu Feb 25 19:37:45 2021 +0800

    Optimize ScalingAPIFactory (#9508)
    
    Co-authored-by: qiulu3 <Lucas209910>
---
 .../apache/shardingsphere/scaling/core/api/ScalingAPIFactory.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/shardingsphere-scaling/shardingsphere-scaling-core/src/main/java/org/apache/shardingsphere/scaling/core/api/ScalingAPIFactory.java b/shardingsphere-scaling/shardingsphere-scaling-core/src/main/java/org/apache/shardingsphere/scaling/core/api/ScalingAPIFactory.java
index 0a167dd..d6c7ebf 100644
--- a/shardingsphere-scaling/shardingsphere-scaling-core/src/main/java/org/apache/shardingsphere/scaling/core/api/ScalingAPIFactory.java
+++ b/shardingsphere-scaling/shardingsphere-scaling-core/src/main/java/org/apache/shardingsphere/scaling/core/api/ScalingAPIFactory.java
@@ -101,7 +101,7 @@ public final class ScalingAPIFactory {
     
     private static final class ScalingAPIHolder {
         
-        private volatile static ScalingAPI instance;
+        private static volatile ScalingAPI instance;
         
         public static ScalingAPI getInstance() {
             if (null == instance) {
@@ -118,7 +118,7 @@ public final class ScalingAPIFactory {
     
     private static final class RegistryRepositoryAPIHolder {
         
-        private volatile static RegistryRepositoryAPI instance;
+        private static volatile RegistryRepositoryAPI instance;
         
         static {
             ShardingSphereServiceLoader.register(RegistryRepository.class);
@@ -149,7 +149,7 @@ public final class ScalingAPIFactory {
     @Getter
     private static final class ElasticJobAPIHolder {
         
-        private volatile static ElasticJobAPIHolder instance;
+        private static volatile ElasticJobAPIHolder instance;
         
         private final JobStatisticsAPI jobStatisticsAPI;
         
@@ -177,7 +177,7 @@ public final class ScalingAPIFactory {
     
     private static final class RegistryCenterHolder {
         
-        private volatile static CoordinatorRegistryCenter instance;
+        private static volatile CoordinatorRegistryCenter instance;
         
         public static CoordinatorRegistryCenter getInstance() {
             if (null == instance) {