Skip to content

Commit

Permalink
Merge pull request #3356 from xpoinsard/patch-1
Browse files Browse the repository at this point in the history
Fix copy-paste issues in AbstractSerializableParameter.getExample
  • Loading branch information
frantuma authored Jun 1, 2020
2 parents f38c0ea + 9719b16 commit 07f34c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -413,12 +413,12 @@ public Object getExample() {
} else if (DecimalProperty.TYPE.equals(type)) {
return Double.valueOf(example);
} else if (BooleanProperty.TYPE.equals(type)) {
if ("true".equalsIgnoreCase(example) || "false".equalsIgnoreCase(defaultValue)) {
if ("true".equalsIgnoreCase(example) || "false".equalsIgnoreCase(example)) {
return Boolean.valueOf(example);
}
}
} catch (NumberFormatException e) {
LOGGER.warn(String.format("Illegal DefaultValue %s for parameter type %s", defaultValue, type), e);
LOGGER.warn(String.format("Illegal Example %s for parameter type %s", example, type), e);
}
return example;
}
Expand Down

0 comments on commit 07f34c5

Please sign in to comment.