diff --git a/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulPropertySource.java b/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulPropertySource.java index 9f414500..46de5008 100644 --- a/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulPropertySource.java +++ b/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulPropertySource.java @@ -75,12 +75,12 @@ public class ConsulPropertySource extends EnumerablePropertySource final List values = response.getValue(); ConsulConfigProperties.Format format = this.configProperties.getFormat(); switch (format) { - case KEY_VALUE: - parsePropertiesInKeyValueFormat(values); - break; - case PROPERTIES: - case YAML: - parsePropertiesWithNonKeyValueFormat(values, format); + case KEY_VALUE: + parsePropertiesInKeyValueFormat(values); + break; + case PROPERTIES: + case YAML: + parsePropertiesWithNonKeyValueFormat(values, format); } }