Skip to content

Commit

Permalink
refactor(): rollback meaningless change
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawven committed Oct 12, 2024
1 parent 5e310b7 commit 559bac3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
22 changes: 11 additions & 11 deletions apollo-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,17 @@
<artifactId>mockserver-netty</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.noconnor</groupId>
<artifactId>junitperf</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.noconnor</groupId>
<artifactId>junitperf</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- end of test -->
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@
*/
public class DefaultConfigManager implements ConfigManager {

protected Map<String, Config> m_configs = Maps.newConcurrentMap();
protected Map<String, Object> m_configLocks = Maps.newConcurrentMap();
protected Map<String, ConfigFile> m_configFiles = Maps.newConcurrentMap();
protected Map<String, Object> m_configFileLocks = Maps.newConcurrentMap();
private Map<String, Config> m_configs = Maps.newConcurrentMap();
private Map<String, Object> m_configLocks = Maps.newConcurrentMap();
private Map<String, ConfigFile> m_configFiles = Maps.newConcurrentMap();
private Map<String, Object> m_configFileLocks = Maps.newConcurrentMap();
private ConfigFactoryManager m_factoryManager;

public DefaultConfigManager() {
m_factoryManager = ApolloInjector.getInstance(ConfigFactoryManager.class);

}

@Override
Expand All @@ -69,8 +68,7 @@ public Config getConfig(String namespace) {
}

@Override
public ConfigFile getConfigFile(String namespace,
ConfigFileFormat configFileFormat) {
public ConfigFile getConfigFile(String namespace, ConfigFileFormat configFileFormat) {
String namespaceFileName = String.format("%s.%s", namespace, configFileFormat.getValue());
ConfigFile configFile = m_configFiles.get(namespaceFileName);

Expand Down

0 comments on commit 559bac3

Please sign in to comment.