This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/struts.git
The following commit(s) were added to refs/heads/main by this push:
new fb19f0cf4 Fix typo 'occured' to 'occurred' in MultiPartRequestWrapper
and ValidationInterceptor
fb19f0cf4 is described below
commit fb19f0cf4c460d5548cabe3e40657b8fb77f4601
Author: siddiqueirshad <[email protected]>
AuthorDate: Tue Nov 3 17:13:11 2026 +0530
Fix typo 'occured' to 'occurred' in MultiPartRequestWrapper and
ValidationInterceptor
Signed-off-by: siddiqueirshad <[email protected]>
---
.../apache/struts2/dispatcher/multipart/MultiPartRequestWrapper.java | 4 ++--
.../main/java/org/apache/struts2/validator/ValidationInterceptor.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/core/src/main/java/org/apache/struts2/dispatcher/multipart/MultiPartRequestWrapper.java
b/core/src/main/java/org/apache/struts2/dispatcher/multipart/MultiPartRequestWrapper.java
index 86151a3ec..35c99460c 100644
---
a/core/src/main/java/org/apache/struts2/dispatcher/multipart/MultiPartRequestWrapper.java
+++
b/core/src/main/java/org/apache/struts2/dispatcher/multipart/MultiPartRequestWrapper.java
@@ -217,9 +217,9 @@ public class MultiPartRequestWrapper extends
StrutsRequestWrapper {
}
/**
- * Returns <tt>true</tt> if any errors occured when parsing the HTTP
multipart request, <tt>false</tt> otherwise.
+ * Returns <tt>true</tt> if any errors occurred when parsing the HTTP
multipart request, <tt>false</tt> otherwise.
*
- * @return <tt>true</tt> if any errors occured when parsing the HTTP
multipart request, <tt>false</tt> otherwise.
+ * @return <tt>true</tt> if any errors occurred when parsing the HTTP
multipart request, <tt>false</tt> otherwise.
*/
public boolean hasErrors() {
return !errors.isEmpty();
diff --git
a/core/src/main/java/org/apache/struts2/validator/ValidationInterceptor.java
b/core/src/main/java/org/apache/struts2/validator/ValidationInterceptor.java
index 0b7d49f97..8e3170d5f 100644
--- a/core/src/main/java/org/apache/struts2/validator/ValidationInterceptor.java
+++ b/core/src/main/java/org/apache/struts2/validator/ValidationInterceptor.java
@@ -229,7 +229,7 @@ public class ValidationInterceptor extends
MethodFilterInterceptor {
}
if (action instanceof Validateable && programmatic) {
- // keep exception that might occured in validateXXX or
validateDoXXX
+ // keep exception that might occurred in validateXXX or
validateDoXXX
Exception exception = null;
Validateable validateable = (Validateable) action;
@@ -241,7 +241,7 @@ public class ValidationInterceptor extends
MethodFilterInterceptor {
catch(Exception e) {
// If any exception occurred while doing reflection, we want
// validate() to be executed
- LOG.warn("an exception occured while executing the prefix
method", e);
+ LOG.warn("an exception occurred while executing the prefix
method", e);
exception = e;
}