Skip to content

Commit

Permalink
fix: replaced String concatenation arguments with StringBuilder.appen…
Browse files Browse the repository at this point in the history
…d() (3322)
  • Loading branch information
AndrewJCate authored Aug 27, 2024
1 parent b5d0da2 commit 8cc048e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ public static String createValidationMessage(Set<ConstraintViolation<?>> constra
leafBean = "" + hasMetadata.getKind() + ": " + metadata;
}
}
builder.append(violation.getPropertyPath() + " " + violation.getMessage() + " on bean: " + leafBean);
builder.append(violation.getPropertyPath())
.append(" ")
.append(violation.getMessage())
.append(" on bean: ")
.append(leafBean);

}
return builder.toString();
}
Expand Down

0 comments on commit 8cc048e

Please sign in to comment.