diff options
author | 2021-05-24 20:51:53 +0000 | |
---|---|---|
committer | 2021-05-24 20:51:53 +0000 | |
commit | 41d130dd1bc967f8163ab2304ed4067254034151 (patch) | |
tree | 0f735b08dfff1f8004106a240d4ae1b875c7179e /common-parameters | |
parent | 57410a85a607f71d4094dae9d9e57dabb7b0b33a (diff) | |
parent | 601a09fd07960d3aadcf972ba7c72dcea9976aef (diff) |
Merge "Enhance toString methods in factory classes"
Diffstat (limited to 'common-parameters')
-rw-r--r-- | common-parameters/src/main/java/org/onap/policy/common/parameters/ParameterValidationResult.java | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/common-parameters/src/main/java/org/onap/policy/common/parameters/ParameterValidationResult.java b/common-parameters/src/main/java/org/onap/policy/common/parameters/ParameterValidationResult.java index b68c62e2..7e56230d 100644 --- a/common-parameters/src/main/java/org/onap/policy/common/parameters/ParameterValidationResult.java +++ b/common-parameters/src/main/java/org/onap/policy/common/parameters/ParameterValidationResult.java @@ -157,21 +157,13 @@ public class ParameterValidationResult implements ValidationResult { return null; } - var validationResultBuilder = new StringBuilder(); - - validationResultBuilder.append(initialIndentation); - validationResultBuilder.append("field \""); - validationResultBuilder.append(getName()); - validationResultBuilder.append("\" type \""); - validationResultBuilder.append(field.getType().getName()); - validationResultBuilder.append("\" value \""); - validationResultBuilder.append(parameterValue); - validationResultBuilder.append("\" "); - validationResultBuilder.append(getStatus()); - validationResultBuilder.append(", "); - validationResultBuilder.append(message); - validationResultBuilder.append('\n'); - - return validationResultBuilder.toString(); + return initialIndentation + + "field \"" + getName() + + "\" type \"" + field.getType().getName() + + "\" value \"" + parameterValue + + "\" " + getStatus() + + ", " + + message + + '\n'; } } |