Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apollo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
apollo
Commits
84537673
Commit
84537673
authored
Oct 01, 2019
by
sunshanpeng
Committed by
Jason Song
Oct 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:ConfigChangeListener to ConfigFileChangeListener (#2623)
parent
0fcce200
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
apollo-client/src/main/java/com/ctrip/framework/apollo/ConfigFile.java
.../src/main/java/com/ctrip/framework/apollo/ConfigFile.java
+1
-1
apollo-client/src/main/java/com/ctrip/framework/apollo/internals/AbstractConfigFile.java
.../ctrip/framework/apollo/internals/AbstractConfigFile.java
+1
-2
apollo-client/src/test/java/com/ctrip/framework/apollo/ConfigServiceTest.java
...st/java/com/ctrip/framework/apollo/ConfigServiceTest.java
+1
-1
No files found.
apollo-client/src/main/java/com/ctrip/framework/apollo/ConfigFile.java
View file @
84537673
...
...
@@ -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
(
Config
File
ChangeListener
listener
);
/**
* Return the config's source type, i.e. where is the config loaded from
...
...
apollo-client/src/main/java/com/ctrip/framework/apollo/internals/AbstractConfigFile.java
View file @
84537673
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
(
Config
File
ChangeListener
listener
)
{
return
m_listeners
.
remove
(
listener
);
}
...
...
apollo-client/src/test/java/com/ctrip/framework/apollo/ConfigServiceTest.java
View file @
84537673
...
...
@@ -145,7 +145,7 @@ public class ConfigServiceTest {
}
@Override
public
boolean
removeChangeListener
(
ConfigChangeListener
listener
)
{
public
boolean
removeChangeListener
(
Config
File
ChangeListener
listener
)
{
return
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment