Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyHZM committed Dec 27, 2018
1 parent 59cbe69 commit 982ff3e
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,20 +255,6 @@ private static Method getMethodByName(Class<?> clazz, String methodName) {
}
}

/**
* We only check boolean value at this moment.
*
* @param type
* @param value
* @return
*/
private static boolean isTypeMatch(Class<?> type, String value) {
if ((type == boolean.class || type == Boolean.class)
&& !("true".equals(value) || "false".equals(value))) {
return false;
}
return true;
}

protected static void checkExtension(Class<?> type, String property, String value) {
checkName(property, value);
Expand Down Expand Up @@ -521,7 +507,7 @@ public void refresh() {
config.addProperties(getMetaData());
if (Environment.getInstance().isConfigCenterFirst()) {
// The sequence would be: SystemConfiguration -> ExternalConfiguration -> AppExternalConfiguration -> AbstractConfig -> PropertiesConfiguration
compositeConfiguration.addConfiguration(3,config);
compositeConfiguration.addConfiguration(3, config);
} else {
// The sequence would be: SystemConfiguration -> AbstractConfig -> ExternalConfiguration -> AppExternalConfiguration -> PropertiesConfiguration
compositeConfiguration.addConfiguration(1, config);
Expand Down

0 comments on commit 982ff3e

Please sign in to comment.