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

mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/master by this push:
     new c66b54a  Fix spelling in javadocs
c66b54a is described below

commit c66b54ad4268be4eb4409890e85ecdd4433f8fe3
Author: Martin Tzvetanov Grigorov <[email protected]>
AuthorDate: Mon Aug 9 22:58:36 2021 +0300

    Fix spelling in javadocs
    
    (cherry picked from commit b665112ce69e3eef5bc1991c13a6ed199c1ac90d)
---
 .../org/apache/wicket/markup/html/form/AbstractTextComponent.java | 8 +-------
 .../java/org/apache/wicket/markup/html/form/FormComponent.java    | 7 ++-----
 .../org/apache/wicket/markup/html/form/PasswordTextField.java     | 6 +++---
 3 files changed, 6 insertions(+), 15 deletions(-)

diff --git 
a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AbstractTextComponent.java
 
b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AbstractTextComponent.java
index 916ec86..4d0ef5f 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AbstractTextComponent.java
+++ 
b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AbstractTextComponent.java
@@ -22,9 +22,6 @@ import org.apache.wicket.Component;
 import org.apache.wicket.model.IModel;
 import org.apache.wicket.model.IObjectClassAwareModel;
 import org.apache.wicket.util.string.Strings;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
 
 /**
  * Abstract base class for TextArea and TextField.
@@ -36,12 +33,9 @@ import org.slf4j.LoggerFactory;
  */
 public abstract class AbstractTextComponent<T> extends FormComponent<T>
 {
-       // Flag for the type resolving. FLAG_RESERVED1-3 is taken by form 
component
+       // Flag for the type resolving. FLAG_RESERVED1-3 are taken by form 
component
        private static final int TYPE_RESOLVED = Component.FLAG_RESERVED4;
 
-       /** Log for reporting. */
-       private static final Logger log = 
LoggerFactory.getLogger(AbstractTextComponent.class);
-
        /**
         * 
         */
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java
 
b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java
index 6ba10e9..28d3cd4 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java
+++ 
b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java
@@ -117,9 +117,6 @@ public abstract class FormComponent<T> extends 
LabeledWebMarkupContainer impleme
        {
                private final Set<String> triedKeys = new LinkedHashSet<>();
 
-               /**
-                * @see 
org.apache.wicket.validation.IErrorMessageSource#getMessage(String, 
java.util.Map)
-                */
                @Override
                public String getMessage(String key, Map<String, Object> vars)
                {
@@ -771,12 +768,12 @@ public abstract class FormComponent<T> extends 
LabeledWebMarkupContainer impleme
                {
                        if (values != null && values.length == 1 && values[0] 
== null)
                        {
-                               // we the key got passed in (otherwise values 
would be null),
+                               // the key got passed in (otherwise values 
would be null),
                                // but the value was set to null.
                                // As the servlet spec isn't clear on what to 
do with 'empty'
                                // request values - most return an empty 
string, but some null -
                                // we have to workaround here and deliberately 
set to an empty
-                               // string if the the component is not nullable 
(text components)
+                               // string if the component is not nullable 
(text components)
                                return EMPTY_STRING_ARRAY;
                        }
                }
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/PasswordTextField.java
 
b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/PasswordTextField.java
index 5530e40..d5d0fe9 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/PasswordTextField.java
+++ 
b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/PasswordTextField.java
@@ -65,7 +65,7 @@ public class PasswordTextField extends TextField<String>
        /**
         * Should password be reset, see {@link #setResetPassword(boolean)}.
         * 
-        * @return should password be resetted
+        * @return should password be reset
         */
        public final boolean getResetPassword()
        {
@@ -74,7 +74,7 @@ public class PasswordTextField extends TextField<String>
 
        /**
         * Flag indicating whether the password should be reset after each 
request.
-        * Additionally any present value is not rendered into the markup.
+        * Additionally, any present value is not rendered into the markup.
         * <br>
         * If <code>true</code>, the model object is set to null after each 
request to prevent it
         * being serialized along with the containing page. This is default and 
highly recommended
@@ -116,7 +116,7 @@ public class PasswordTextField extends TextField<String>
        }
 
        /**
-        * Overriden to nullify the password.
+        * Overridden to nullify the password.
         */
        @Override
        protected void onDetach()

Reply via email to