No more null description

This commit is contained in:
Marcin Grzejszczak
2020-06-04 13:12:57 +02:00
parent d4fefdcd77
commit b6a814b6cf

View File

@@ -75,7 +75,7 @@ public class Main {
if (!pattern.matcher(name).matches()) {
return;
}
String description = String.valueOf(val.get("description"));
Object description = val.get("description");
Object defaultValue = val.get("defaultValue");
matchingPropertyCount.incrementAndGet();
names.add(name);
@@ -132,7 +132,7 @@ public class Main {
ConfigValue() {
}
ConfigValue(String name, String description, Object defaultValue) {
ConfigValue(String name, Object description, Object defaultValue) {
this.name = name;
this.description = escapedValue(description);
this.defaultValue = escapedValue(defaultValue);