diff --git a/apollo-client/src/main/java/com/ctrip/framework/apollo/internals/RemoteConfigRepository.java b/apollo-client/src/main/java/com/ctrip/framework/apollo/internals/RemoteConfigRepository.java index 58984015..155f4c58 100644 --- a/apollo-client/src/main/java/com/ctrip/framework/apollo/internals/RemoteConfigRepository.java +++ b/apollo-client/src/main/java/com/ctrip/framework/apollo/internals/RemoteConfigRepository.java @@ -260,7 +260,7 @@ private ApolloConfig loadApolloConfig() { ConfigSyncType configSyncType=ConfigSyncType.fromString(result.getConfigSyncType()); - if (configSyncType == ConfigSyncType.INCREMENTALSYNC) { + if (configSyncType == ConfigSyncType.INCREMENTAL_SYNC) { ApolloConfig previousConfig = m_configCache.get(); diff --git a/apollo-client/src/test/java/com/ctrip/framework/apollo/internals/RemoteConfigRepositoryTest.java b/apollo-client/src/test/java/com/ctrip/framework/apollo/internals/RemoteConfigRepositoryTest.java index e0334ccb..e5e44920 100644 --- a/apollo-client/src/test/java/com/ctrip/framework/apollo/internals/RemoteConfigRepositoryTest.java +++ b/apollo-client/src/test/java/com/ctrip/framework/apollo/internals/RemoteConfigRepositoryTest.java @@ -33,7 +33,6 @@ import com.ctrip.framework.apollo.build.MockInjector; import com.ctrip.framework.apollo.core.dto.*; import com.ctrip.framework.apollo.core.enums.ConfigSyncType; -import com.ctrip.framework.apollo.core.enums.ConfigurationChangeType; import com.ctrip.framework.apollo.core.signature.Signature; import com.ctrip.framework.apollo.enums.ConfigSourceType; import com.ctrip.framework.apollo.exceptions.ApolloConfigException; @@ -487,7 +486,7 @@ private ApolloConfig assembleApolloConfigWithIncrementalSync(List - 2.5.0-SNAPSHOT + 2.4.0-SNAPSHOT 1.8 UTF-8 2.7.18