This is an automated email from the ASF dual-hosted git repository.

reiern70 pushed a commit to branch wicket-9.x
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/wicket-9.x by this push:
     new 1f420dc2bf [WICKET-7033] add comments to code (amendment)
1f420dc2bf is described below

commit 1f420dc2bfe05687093706827e4ec45d824ead79
Author: reiern70 <reier...@gmail.com>
AuthorDate: Thu Apr 20 09:31:29 2023 +0300

    [WICKET-7033] add comments to code (amendment)
---
 .../markup/html/form/upload/resource/AbstractFileUploadResource.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/upload/resource/AbstractFileUploadResource.java
 
b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/upload/resource/AbstractFileUploadResource.java
index f07b65c4da..8e4dee88a6 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/upload/resource/AbstractFileUploadResource.java
+++ 
b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/upload/resource/AbstractFileUploadResource.java
@@ -143,8 +143,8 @@ public abstract class AbstractFileUploadResource extends 
AbstractResource
                catch (FileUploadException fux)
                {
                        resourceResponse.setContentType("application/json");
-                       // even when this exceptional situation we want the 
request to be successful
-                       // as we are just sending back to client some JSON with 
error messages
+                       // even when this is an exceptional situation we want 
the request to be successful
+                       // as we are just sending back to the client some JSON 
with error messages,
                        // which will in turn be sent to wicket component (who 
will handle the errors)
                        
resourceResponse.setStatusCode(HttpServletResponse.SC_OK);
                        JSONObject json = new JSONObject();

Reply via email to