Fix exist method bug in PropertiesWrapper
@@ -47,7 +47,10 @@ public class PropertiesWrapper {
public boolean exist(String key) {
String value = this.properties.getProperty(key);
- if (value == null) {
+ if (value != null) {
+ return true;
+ }
+
List<String> keys = propertiesKeyMapper.getKeys(key);
if (keys != null && !keys.isEmpty()) {
for (String each : keys) {
@@ -57,7 +60,6 @@ public class PropertiesWrapper {
}
}
}
- }
return false;
}
