|
else if (value.startsWith("(default)")) { |
|
final String defaultValue = value.substring(value.indexOf(')') + 1); |
|
if (NULL_STRING.equals(defaultValue)) { |
|
inputConfigBuilder.addDefaultProperty(key, null); |
|
} |
|
else { |
|
inputConfigBuilder.addDefaultProperty(key, defaultValue); |
|
} |
|
} |
we did not have time to make validation for default to match actual default at the moment we did migration to BDD style for Inputs.
now all migrations are done, so time to improve declaration of default to match actual default.
noticed at: #15957 (comment)
Required: in referenced code try to get default value from Check instance.
checkstyle/src/test/java/com/puppycrawl/tools/checkstyle/bdd/InlineConfigParser.java
Lines 650 to 658 in cfd932f
we did not have time to make validation for default to match actual default at the moment we did migration to BDD style for Inputs.
now all migrations are done, so time to improve declaration of default to match actual default.
noticed at: #15957 (comment)
Required: in referenced code try to get default value from Check instance.