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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8d9ada129 Fix typos in Javadoc and example comments (#1774)
8d9ada129 is described below

commit 8d9ada1291429cd53b0b5432df2f97aebc1d7749
Author: gaurav kumar pandey <[email protected]>
AuthorDate: Mon Aug 17 01:10:02 2026 +0530

    Fix typos in Javadoc and example comments (#1774)
---
 src/main/java/org/apache/commons/lang3/Range.java              |  4 ++--
 src/main/java/org/apache/commons/lang3/StringUtils.java        |  2 +-
 src/main/java/org/apache/commons/lang3/Strings.java            |  2 +-
 src/main/java/org/apache/commons/lang3/text/StrBuilder.java    |  8 ++++----
 .../org/apache/commons/lang3/time/DurationFormatUtils.java     | 10 +++++-----
 .../org/apache/commons/lang3/builder/EqualsBuilderTest.java    |  2 +-
 6 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/Range.java 
b/src/main/java/org/apache/commons/lang3/Range.java
index 81069a688..0256bcc07 100644
--- a/src/main/java/org/apache/commons/lang3/Range.java
+++ b/src/main/java/org/apache/commons/lang3/Range.java
@@ -44,8 +44,8 @@ private enum ComparableComparator implements Comparator {
         /**
          * Comparable based compare implementation.
          *
-         * @param obj1 left-hand side side of comparison.
-         * @param obj2 right-hand side side of comparison.
+         * @param obj1 left-hand side of comparison.
+         * @param obj2 right-hand side of comparison.
          * @return negative, 0, positive comparison value.
          */
         @Override
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java 
b/src/main/java/org/apache/commons/lang3/StringUtils.java
index 647e351a9..6d06ff1ae 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -447,7 +447,7 @@ public static String abbreviateMiddle(final String str, 
final String middle, fin
      * <pre>
      * StringUtils.appendIfMissing(null, null)      = null
      * StringUtils.appendIfMissing("abc", null)     = "abc"
-     * StringUtils.appendIfMissing("", "xyz"        = "xyz"
+     * StringUtils.appendIfMissing("", "xyz")       = "xyz"
      * StringUtils.appendIfMissing("abc", "xyz")    = "abcxyz"
      * StringUtils.appendIfMissing("abcxyz", "xyz") = "abcxyz"
      * StringUtils.appendIfMissing("abcXYZ", "xyz") = "abcXYZxyz"
diff --git a/src/main/java/org/apache/commons/lang3/Strings.java 
b/src/main/java/org/apache/commons/lang3/Strings.java
index 5fce16c14..a6910d243 100644
--- a/src/main/java/org/apache/commons/lang3/Strings.java
+++ b/src/main/java/org/apache/commons/lang3/Strings.java
@@ -363,7 +363,7 @@ private Strings(final boolean ignoreCase, final boolean 
nullIsLess) {
      * <pre>
      * Strings.CS.appendIfMissing(null, null)      = null
      * Strings.CS.appendIfMissing("abc", null)     = "abc"
-     * Strings.CS.appendIfMissing("", "xyz"        = "xyz"
+     * Strings.CS.appendIfMissing("", "xyz")       = "xyz"
      * Strings.CS.appendIfMissing("abc", "xyz")    = "abcxyz"
      * Strings.CS.appendIfMissing("abcxyz", "xyz") = "abcxyz"
      * Strings.CS.appendIfMissing("abcXYZ", "xyz") = "abcXYZxyz"
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 c91c1e239..3d6986d22 100644
--- a/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
+++ b/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
@@ -838,7 +838,7 @@ public <T> StrBuilder 
appendAll(@SuppressWarnings("unchecked") final T... array)
     /**
      * Appends an object to the builder padding on the left to a fixed width.
      * The {@code String.valueOf} of the {@code int} value is used.
-     * If the formatted value is larger than the length, the left-hand side 
side is lost.
+     * If the formatted value is larger than the length, the left-hand side is 
lost.
      *
      * @param value  The value to append.
      * @param width  The fixed field width, zero or negative has no effect.
@@ -852,7 +852,7 @@ public StrBuilder appendFixedWidthPadLeft(final int value, 
final int width, fina
     /**
      * Appends an object to the builder padding on the left to a fixed width.
      * The {@code toString} of the object is used.
-     * If the object is larger than the length, the left-hand side side is 
lost.
+     * If the object is larger than the length, the left-hand side is lost.
      * If the object is null, the null text value is used.
      *
      * @param obj  The object to append, null uses null text.
@@ -884,7 +884,7 @@ public StrBuilder appendFixedWidthPadLeft(final Object obj, 
final int width, fin
     /**
      * Appends an object to the builder padding on the right to a fixed length.
      * The {@code String.valueOf} of the {@code int} value is used.
-     * If the object is larger than the length, the right-hand side side is 
lost.
+     * If the object is larger than the length, the right-hand side is lost.
      *
      * @param value  The value to append.
      * @param width  The fixed field width, zero or negative has no effect.
@@ -898,7 +898,7 @@ public StrBuilder appendFixedWidthPadRight(final int value, 
final int width, fin
     /**
      * Appends an object to the builder padding on the right to a fixed length.
      * The {@code toString} of the object is used.
-     * If the object is larger than the length, the right-hand side side is 
lost.
+     * If the object is larger than the length, the right-hand side is lost.
      * If the object is null, null text value is used.
      *
      * @param obj  The object to append, null uses null text.
diff --git 
a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java 
b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
index 66d963ce9..85f216773 100644
--- a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
+++ b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
@@ -349,14 +349,14 @@ public static String formatDuration(final long 
durationMillis, final String form
     }
 
     /**
-     * Formats the time gap as a string, using the specified format. Padding 
the left-hand side side of numbers with zeroes is optional.
+     * Formats the time gap as a string, using the specified format. Padding 
the left-hand side of numbers with zeroes is optional.
      * <p>
      * This method formats durations using the days and lower fields of the 
format pattern. Months and larger are not used.
      * </p>
      *
      * @param durationMillis The duration to format.
      * @param format         The way in which to format the duration, not null.
-     * @param padWithZeros   whether to pad the left-hand side side of numbers 
with 0's.
+     * @param padWithZeros   whether to pad the left-hand side of numbers with 
0's.
      * @return The formatted duration, not null.
      * @throws IllegalArgumentException if durationMillis is negative.
      */
@@ -488,7 +488,7 @@ public static String formatDurationWords(final long 
durationMillis, final boolea
     }
 
     /**
-     * Formats the time gap as a string, using the specified format. Padding 
the left-hand side side of numbers with zeroes is optional.
+     * Formats the time gap as a string, using the specified format. Padding 
the left-hand side of numbers with zeroes is optional.
      *
      * @param startMillis The start of the duration.
      * @param endMillis   The end of the duration.
@@ -502,7 +502,7 @@ public static String formatPeriod(final long startMillis, 
final long endMillis,
 
     /**
      * <p>
-     * Formats the time gap as a string, using the specified format. Padding 
the left-hand side side of numbers with zeroes is optional and the time zone 
may be
+     * Formats the time gap as a string, using the specified format. Padding 
the left-hand side of numbers with zeroes is optional and the time zone may be
      * specified.
      * <p>
      * When calculating the difference between months/days, it chooses to 
calculate months first, borrowing the length of the month in which the period 
starts
@@ -517,7 +517,7 @@ public static String formatPeriod(final long startMillis, 
final long endMillis,
      * @param startMillis  The start of the duration.
      * @param endMillis    The end of the duration.
      * @param format       The way in which to format the duration, not null.
-     * @param padWithZeros whether to pad the left-hand side side of numbers 
with 0's.
+     * @param padWithZeros whether to pad the left-hand side of numbers with 
0's.
      * @param timezone     The millis are defined in.
      * @return The formatted duration, not null.
      * @throws IllegalArgumentException if startMillis is greater than 
endMillis.
diff --git 
a/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java 
b/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java
index 8b21c393e..f15e1f34e 100644
--- a/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java
@@ -1262,7 +1262,7 @@ void testReflectionEquals() {
      *
      * @param to             A TestObject
      * @param toBis          A TestObject, equal to to and toTer
-     * @param toTer          left-hand side side, equal to to and toBis
+     * @param toTer          left-hand side, equal to to and toBis
      * @param to2            A different TestObject
      * @param oToChange      A TestObject that will be changed
      * @param testTransients whether to test transient instance variables

Reply via email to