Skip to content

Commit

Permalink
Issue checkstyle#54(metadata-gen): fix default values
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurabdg committed Aug 18, 2020
1 parent 4c42f21 commit eae5dec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ private List<String> getEnumValues(String enumName) {
*/
private void constructParams(String checkName, RulesDefinition.NewParam param,
ModulePropertyDetails modulePropertyDetails) {
param.setDescription(modulePropertyDetails.getDescription())
.setDefaultValue(modulePropertyDetails.getDefaultValue());
param.setDescription(modulePropertyDetails.getDescription());
final String paramType = modulePropertyDetails.getType();
if (modulePropertyDetails.getValidationType() != null
&& "tokenSet".equals(modulePropertyDetails.getValidationType())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ public void testUpdate() {
assertEquals("Description doesn't match for param: " + key,
modulePropertyDetails.getDescription(),
param.description());
assertEquals("Default value doesn't match for param: " + key,
modulePropertyDetails.getDefaultValue(),
param.defaultValue());
}
});
});
Expand Down Expand Up @@ -113,8 +110,6 @@ public void testCreate() {
final RulesDefinition.Param modParam = modRule.param(paramKey);
assertEquals("Description doesn't match for param: " + paramKey,
origParam.description(), modParam.description());
assertEquals("Default value doesn't match for param: " + paramKey,
origParam.defaultValue(), modParam.defaultValue());
assertEquals("Type doesn't match for param: " + paramKey, origParam.type(),
modParam.type());
}
Expand Down

0 comments on commit eae5dec

Please sign in to comment.