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

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

commit 55a9cb915a5f0e733b00ffd93942a6079c85ba53
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Sep 12 10:17:52 2024 -0400

    Remove redundant syntax
---
 src/main/java/org/apache/commons/lang3/text/StrBuilder.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/text/StrBuilder.java 
b/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
index c2dd67ba1..d700b4b36 100644
--- a/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
+++ b/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
@@ -122,7 +122,7 @@ public class StrBuilder implements CharSequence, 
Appendable, Serializable, Build
             if (!ready()) {
                 return -1;
             }
-            return StrBuilder.this.charAt(pos++);
+            return charAt(pos++);
         }
 
         /** {@inheritDoc} */
@@ -135,11 +135,11 @@ public class StrBuilder implements CharSequence, 
Appendable, Serializable, Build
             if (len == 0) {
                 return 0;
             }
-            if (pos >= StrBuilder.this.size()) {
+            if (pos >= size()) {
                 return -1;
             }
             if (pos + len > size()) {
-                len = StrBuilder.this.size() - pos;
+                len = size() - pos;
             }
             StrBuilder.this.getChars(pos, pos + len, b, off);
             pos += len;
@@ -149,7 +149,7 @@ public class StrBuilder implements CharSequence, 
Appendable, Serializable, Build
         /** {@inheritDoc} */
         @Override
         public boolean ready() {
-            return pos < StrBuilder.this.size();
+            return pos < size();
         }
 
         /** {@inheritDoc} */
@@ -161,8 +161,8 @@ public class StrBuilder implements CharSequence, 
Appendable, Serializable, Build
         /** {@inheritDoc} */
         @Override
         public long skip(long n) {
-            if (pos + n > StrBuilder.this.size()) {
-                n = StrBuilder.this.size() - pos;
+            if (pos + n > size()) {
+                n = size() - pos;
             }
             if (n < 0) {
                 return 0;

Reply via email to