diff --git a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractConfig.java b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractConfig.java index a719c74e21b..b262a442f45 100644 --- a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractConfig.java +++ b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractConfig.java @@ -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); @@ -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);