Merge pull request #33036 from tafjwr

* pr/33036:
  Polish "Fix typo in comment"
  Fix typo in comment

Closes gh-33036
This commit is contained in:
Stéphane Nicoll 2024-06-16 09:59:15 +02:00
commit c42778a05b
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class DefaultBindingErrorProcessor implements BindingErrorProcessor {
@Override
public void processPropertyAccessException(PropertyAccessException ex, BindingResult bindingResult) {
// Create field error with the exceptions's code, e.g. "typeMismatch".
// Create field error with the code of the exception, e.g. "typeMismatch".
String field = ex.getPropertyName();
Assert.state(field != null, "No field in exception");
String[] codes = bindingResult.resolveMessageCodes(ex.getErrorCode(), field);