Explorar el Código

fix:ConfigChangeListener to ConfigFileChangeListener (#2623)

sunshanpeng hace 5 años
padre
commit
84537673ba

+ 1 - 1
apollo-client/src/main/java/com/ctrip/framework/apollo/ConfigFile.java

@@ -44,7 +44,7 @@ public interface ConfigFile {
    * @param listener the specific config change listener to remove
    * @return true if the specific config change listener is found and removed
    */
-  public boolean removeChangeListener(ConfigChangeListener listener);
+  public boolean removeChangeListener(ConfigFileChangeListener listener);
 
   /**
    * Return the config's source type, i.e. where is the config loaded from

+ 1 - 2
apollo-client/src/main/java/com/ctrip/framework/apollo/internals/AbstractConfigFile.java

@@ -1,6 +1,5 @@
 package com.ctrip.framework.apollo.internals;
 
-import com.ctrip.framework.apollo.ConfigChangeListener;
 import com.ctrip.framework.apollo.enums.ConfigSourceType;
 import java.util.List;
 import java.util.Properties;
@@ -104,7 +103,7 @@ public abstract class AbstractConfigFile implements ConfigFile, RepositoryChange
   }
 
   @Override
-  public boolean removeChangeListener(ConfigChangeListener listener) {
+  public boolean removeChangeListener(ConfigFileChangeListener listener) {
     return m_listeners.remove(listener);
   }
 

+ 1 - 1
apollo-client/src/test/java/com/ctrip/framework/apollo/ConfigServiceTest.java

@@ -145,7 +145,7 @@ public class ConfigServiceTest {
     }
 
     @Override
-    public boolean removeChangeListener(ConfigChangeListener listener) {
+    public boolean removeChangeListener(ConfigFileChangeListener listener) {
       return false;
     }