@ -180,7 +180,7 @@ public abstract class AbstractPropertyResolver implements ConfigurablePropertyRe
@@ -180,7 +180,7 @@ public abstract class AbstractPropertyResolver implements ConfigurablePropertyRe
thrownewIllegalStateException(String.format("required key [%s] not found",key));
thrownewIllegalStateException("Required key '"+key+"' not found");
}
returnvalue;
}
@ -189,7 +189,7 @@ public abstract class AbstractPropertyResolver implements ConfigurablePropertyRe
@@ -189,7 +189,7 @@ public abstract class AbstractPropertyResolver implements ConfigurablePropertyRe
thrownewIllegalStateException(String.format("required key [%s] not found",key));
thrownewIllegalStateException("Required key '"+key+"' not found");
}
returnvalue;
}
@ -233,7 +233,7 @@ public abstract class AbstractPropertyResolver implements ConfigurablePropertyRe
@@ -233,7 +233,7 @@ public abstract class AbstractPropertyResolver implements ConfigurablePropertyRe
@ -119,8 +119,7 @@ public class CompositePropertySource extends EnumerablePropertySource<Object> {
@@ -119,8 +119,7 @@ public class CompositePropertySource extends EnumerablePropertySource<Object> {
@ -33,6 +33,17 @@ public class MissingRequiredPropertiesException extends IllegalStateException {
@@ -33,6 +33,17 @@ public class MissingRequiredPropertiesException extends IllegalStateException {
@ -40,17 +51,7 @@ public class MissingRequiredPropertiesException extends IllegalStateException {
@@ -40,17 +51,7 @@ public class MissingRequiredPropertiesException extends IllegalStateException {
@ -95,8 +94,7 @@ public class MutablePropertySources implements PropertySources {
@@ -95,8 +94,7 @@ public class MutablePropertySources implements PropertySources {
logger.debug(String.format("Adding [%s] PropertySource with highest search precedence",
propertySource.getName()));
logger.debug("Adding PropertySource '"+propertySource.getName()+"' with highest search precedence");
}
removeIfPresent(propertySource);
this.propertySourceList.add(0,propertySource);
@ -107,8 +105,7 @@ public class MutablePropertySources implements PropertySources {
@@ -107,8 +105,7 @@ public class MutablePropertySources implements PropertySources {
logger.debug(String.format("Adding [%s] PropertySource with lowest search precedence",
propertySource.getName()));
logger.debug("Adding PropertySource '"+propertySource.getName()+"' with lowest search precedence");
}
removeIfPresent(propertySource);
this.propertySourceList.add(propertySource);
@ -120,8 +117,8 @@ public class MutablePropertySources implements PropertySources {
@@ -120,8 +117,8 @@ public class MutablePropertySources implements PropertySources {
@ -135,8 +132,8 @@ public class MutablePropertySources implements PropertySources {
@@ -135,8 +132,8 @@ public class MutablePropertySources implements PropertySources {
@ -158,7 +155,7 @@ public class MutablePropertySources implements PropertySources {
@@ -158,7 +155,7 @@ public class MutablePropertySources implements PropertySources {
@ -173,8 +170,7 @@ public class MutablePropertySources implements PropertySources {
@@ -173,8 +170,7 @@ public class MutablePropertySources implements PropertySources {
@ -189,11 +185,7 @@ public class MutablePropertySources implements PropertySources {
@@ -189,11 +185,7 @@ public class MutablePropertySources implements PropertySources {
@ -203,7 +195,7 @@ public class MutablePropertySources implements PropertySources {
@@ -203,7 +195,7 @@ public class MutablePropertySources implements PropertySources {
String.format("PropertySource named [%s] cannot be added relative to itself",newPropertySourceName));
"PropertySource named '"+newPropertySourceName+"' cannot be added relative to itself");
}
}
@ -224,14 +216,13 @@ public class MutablePropertySources implements PropertySources {
@@ -224,14 +216,13 @@ public class MutablePropertySources implements PropertySources {
@ -76,7 +76,8 @@ public class PropertySourcesPropertyResolver extends AbstractPropertyResolver {
@@ -76,7 +76,8 @@ public class PropertySourcesPropertyResolver extends AbstractPropertyResolver {
logger.trace(String.format("Searching for key '%s' in [%s]",key,propertySource.getName()));
logger.trace("Searching for key '"+key+"' in PropertySource '"+
propertySource.getName()+"'");
}
Objectvalue=propertySource.getProperty(key);
if(value!=null){
@ -89,7 +90,7 @@ public class PropertySourcesPropertyResolver extends AbstractPropertyResolver {
@@ -89,7 +90,7 @@ public class PropertySourcesPropertyResolver extends AbstractPropertyResolver {
}
}
if(logger.isDebugEnabled()){
logger.debug(String.format("Could not find key '%s' in any property source",key));
logger.debug("Could not find key '"+key+"' in any property source");
}
returnnull;
}
@ -108,8 +109,8 @@ public class PropertySourcesPropertyResolver extends AbstractPropertyResolver {
@@ -108,8 +109,8 @@ public class PropertySourcesPropertyResolver extends AbstractPropertyResolver {
@ -91,8 +91,8 @@ public class SystemEnvironmentPropertySource extends MapPropertySource {
@@ -91,8 +91,8 @@ public class SystemEnvironmentPropertySource extends MapPropertySource {