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

ggregory pushed a commit to branch 1.x
in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git

commit f16dcda39be3adc07d3bd5392ab64064e79b19ff
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Aug 25 11:39:30 2024 -0400

    Remove redundant keywords
---
 .../org/apache/commons/fileupload/ParameterParser.java     | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/apache/commons/fileupload/ParameterParser.java 
b/src/main/java/org/apache/commons/fileupload/ParameterParser.java
index 8e266099..b90823b6 100644
--- a/src/main/java/org/apache/commons/fileupload/ParameterParser.java
+++ b/src/main/java/org/apache/commons/fileupload/ParameterParser.java
@@ -113,7 +113,7 @@ public class ParameterParser {
      *         {@code false} otherwise.
      */
     private boolean hasChar() {
-        return this.pos < this.len;
+        return pos < len;
     }
 
     /**
@@ -125,7 +125,7 @@ public class ParameterParser {
      * Otherwise returns {@code false}
      */
     public boolean isLowerCaseNames() {
-        return this.lowerCaseNames;
+        return lowerCaseNames;
     }
 
     /**
@@ -187,9 +187,9 @@ public class ParameterParser {
             return new HashMap<>();
         }
         final HashMap<String, String> params = new HashMap<>();
-        this.chars = charArray.clone();
-        this.pos = offset;
-        this.len = length;
+        chars = charArray.clone();
+        pos = offset;
+        len = length;
 
         String paramName;
         String paramValue;
@@ -216,7 +216,7 @@ public class ParameterParser {
             }
             if (paramName != null && !paramName.isEmpty()) {
                 paramName = RFC2231Utility.stripDelimiter(paramName);
-                if (this.lowerCaseNames) {
+                if (lowerCaseNames) {
                     paramName = paramName.toLowerCase(Locale.ROOT);
                 }
                 params.put(paramName, paramValue);
@@ -334,7 +334,7 @@ public class ParameterParser {
      * {@code false} otherwise.
      */
     public void setLowerCaseNames(final boolean b) {
-        this.lowerCaseNames = b;
+        lowerCaseNames = b;
     }
 
 }

Reply via email to