Skip to content

Commit d68bf97

Browse files
committed
Javadoc
- Pick up one change from PR #1536 - Apply same change to the method that calls the above
1 parent 5d46a39 commit d68bf97

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ The <action> type attribute can be add,update,fix,remove.
103103
<action type="fix" dev="ggregory" due-to="Gary Gregory">Better exception messages from FastDateParser.parse(String).</action>
104104
<action type="fix" dev="ggregory" due-to="Gary Gregory, David Du">Simplify NumberUtils.isParsable(String) #1570.</action>
105105
<action type="fix" dev="ggregory" due-to="Gary Gregory">RandomStringUtils.random() methods may not return when asked to generate only letters or only numbers while provided with a range that contains neither.</action>
106+
<action type="fix" dev="ggregory" due-to="Gary Gregory, Akshat Upadhyay">Fix Javadoc parameter comments in StringUtils.truncate() methods #1536.</action>
106107
<!-- ADD -->
107108
<action type="add" dev="ggregory" due-to="Gary Gregory">Add JavaVersion.JAVA_27.</action>
108109
<action type="add" dev="ggregory" due-to="Gary Gregory">Add SystemUtils.IS_JAVA_27.</action>

src/main/java/org/apache/commons/lang3/StringUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8829,7 +8829,7 @@ public static String trimToNull(final String str) {
88298829
* </pre>
88308830
*
88318831
* @param str the String to truncate, may be null.
8832-
* @param maxWidth maximum length of result String, must be positive.
8832+
* @param maxWidth maximum length of result String, must be non-negative.
88338833
* @return truncated String, {@code null} if null String input.
88348834
* @throws IllegalArgumentException If {@code maxWidth} is less than {@code 0}.
88358835
* @since 3.5
@@ -8891,7 +8891,7 @@ public static String truncate(final String str, final int maxWidth) {
88918891
*
88928892
* @param str the String to truncate, may be null.
88938893
* @param offset left edge of source String.
8894-
* @param maxWidth maximum length of result String, must be positive.
8894+
* @param maxWidth maximum length of result String, must be non-negative.
88958895
* @return truncated String, {@code null} if null String input.
88968896
* @throws IllegalArgumentException If {@code offset} or {@code maxWidth} is less than {@code 0}.
88978897
* @since 3.5

0 commit comments

Comments
 (0)