From 12cf654c981bc63b3454387291693a5741703aaa Mon Sep 17 00:00:00 2001 From: tafjwr <64597651+tafjwr@users.noreply.github.com> Date: Sun, 16 Jun 2024 02:43:30 +0900 Subject: [PATCH 1/2] Fix typo in comment See gh-33036 --- .../validation/DefaultBindingErrorProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-context/src/main/java/org/springframework/validation/DefaultBindingErrorProcessor.java b/spring-context/src/main/java/org/springframework/validation/DefaultBindingErrorProcessor.java index 0b69e3f072d2..06ae31d38e31 100644 --- a/spring-context/src/main/java/org/springframework/validation/DefaultBindingErrorProcessor.java +++ b/spring-context/src/main/java/org/springframework/validation/DefaultBindingErrorProcessor.java @@ -66,7 +66,7 @@ public void processMissingFieldError(String missingField, BindingResult bindingR @Override public void processPropertyAccessException(PropertyAccessException ex, BindingResult bindingResult) { - // Create field error with the exceptions's code, e.g. "typeMismatch". + // Create field error with the exception's code, e.g. "typeMismatch". String field = ex.getPropertyName(); Assert.state(field != null, "No field in exception"); String[] codes = bindingResult.resolveMessageCodes(ex.getErrorCode(), field); From f140df881d267020a6143c4b18488b3df593e9fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Sun, 16 Jun 2024 09:57:24 +0200 Subject: [PATCH 2/2] Polish "Fix typo in comment" See gh-33036 --- .../validation/DefaultBindingErrorProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-context/src/main/java/org/springframework/validation/DefaultBindingErrorProcessor.java b/spring-context/src/main/java/org/springframework/validation/DefaultBindingErrorProcessor.java index 06ae31d38e31..7d5bf02f9802 100644 --- a/spring-context/src/main/java/org/springframework/validation/DefaultBindingErrorProcessor.java +++ b/spring-context/src/main/java/org/springframework/validation/DefaultBindingErrorProcessor.java @@ -66,7 +66,7 @@ public void processMissingFieldError(String missingField, BindingResult bindingR @Override public void processPropertyAccessException(PropertyAccessException ex, BindingResult bindingResult) { - // Create field error with the exception'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);