Skip to content

Commit c42778a

Browse files
committed
Merge pull request #33036 from tafjwr
* pr/33036: Polish "Fix typo in comment" Fix typo in comment Closes gh-33036
2 parents 089e4e6 + f140df8 commit c42778a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-context/src/main/java/org/springframework/validation/DefaultBindingErrorProcessor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void processMissingFieldError(String missingField, BindingResult bindingR
6666

6767
@Override
6868
public void processPropertyAccessException(PropertyAccessException ex, BindingResult bindingResult) {
69-
// Create field error with the exceptions's code, e.g. "typeMismatch".
69+
// Create field error with the code of the exception, e.g. "typeMismatch".
7070
String field = ex.getPropertyName();
7171
Assert.state(field != null, "No field in exception");
7272
String[] codes = bindingResult.resolveMessageCodes(ex.getErrorCode(), field);

0 commit comments

Comments
 (0)