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 4449725e6 [javadoc] Document null locales in StringUtils case 
conversion (#1906)
4449725e6 is described below

commit 4449725e68f3f81304846e6cad63ff458b3dc163
Author: wenwenwu999-maker <[email protected]>
AuthorDate: Thu Dec 3 21:21:49 2026 +0800

    [javadoc] Document null locales in StringUtils case conversion (#1906)
    
    Both methods resolve a null locale through LocaleUtils.toLocale(Locale), 
which uses the default locale. Document that fallback in their locale 
parameters.
    
    Assisted-By: OpenAI Codex
---
 src/main/java/org/apache/commons/lang3/StringUtils.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java 
b/src/main/java/org/apache/commons/lang3/StringUtils.java
index ae977b0fc..653e91152 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -5388,7 +5388,7 @@ public static String lowerCase(final String str) {
      * </pre>
      *
      * @param str    The String to lower case, may be null.
-     * @param locale The locale that defines the case transformation rules, 
must not be null.
+     * @param locale The locale that defines the case transformation rules, or 
{@code null} to use {@link Locale#getDefault()}.
      * @return The lower cased String, {@code null} if null String input.
      * @since 2.5
      */
@@ -9312,7 +9312,7 @@ public static String upperCase(final String str) {
      * </pre>
      *
      * @param str    The String to upper case, may be null.
-     * @param locale The locale that defines the case transformation rules, 
must not be null.
+     * @param locale The locale that defines the case transformation rules, or 
{@code null} to use {@link Locale#getDefault()}.
      * @return The upper-cased String, {@code null} if null String input.
      * @since 2.5
      */

Reply via email to