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


The following commit(s) were added to refs/heads/master by this push:
     new 2909b27c7 [javadoc] Fix incorrect exception type in Javadoc example 
(#1563)
2909b27c7 is described below

commit 2909b27c7a556279dfcdea5fed04f0a860b71a44
Author: Dennis Ginter <[email protected]>
AuthorDate: Sun Jan 11 14:47:09 2026 +0100

    [javadoc] Fix incorrect exception type in Javadoc example (#1563)
    
    Co-authored-by: gaf <[email protected]>
---
 src/main/java/org/apache/commons/lang3/CharUtils.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/CharUtils.java 
b/src/main/java/org/apache/commons/lang3/CharUtils.java
index b9dfadaa6..fda1bf618 100644
--- a/src/main/java/org/apache/commons/lang3/CharUtils.java
+++ b/src/main/java/org/apache/commons/lang3/CharUtils.java
@@ -270,7 +270,7 @@ public static boolean isOctal(final char ch) {
      * <pre>
      *   CharUtils.toChar(' ')  = ' '
      *   CharUtils.toChar('A')  = 'A'
-     *   CharUtils.toChar(null) throws IllegalArgumentException
+     *   CharUtils.toChar(null) throws NullPointerException
      * </pre>
      *
      * @param ch  the character to convert
@@ -305,7 +305,7 @@ public static char toChar(final Character ch, final char 
defaultValue) {
      * <pre>
      *   CharUtils.toChar("A")  = 'A'
      *   CharUtils.toChar("BA") = 'B'
-     *   CharUtils.toChar(null) throws IllegalArgumentException
+     *   CharUtils.toChar(null) throws NullPointerException
      *   CharUtils.toChar("")   throws IllegalArgumentException
      * </pre>
      *
@@ -420,7 +420,7 @@ public static int toIntValue(final char ch, final int 
defaultValue) {
      *
      * <pre>
      *   CharUtils.toIntValue('3')  = 3
-     *   CharUtils.toIntValue(null) throws IllegalArgumentException
+     *   CharUtils.toIntValue(null) throws NullPointerException
      *   CharUtils.toIntValue('A')  throws IllegalArgumentException
      * </pre>
      *

Reply via email to