Skip to content

Commit 2909b27

Browse files
[javadoc] Fix incorrect exception type in Javadoc example (#1563)
Co-authored-by: gaf <gide1011@h-ka.de>
1 parent 30f0781 commit 2909b27

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public static boolean isOctal(final char ch) {
270270
* <pre>
271271
* CharUtils.toChar(' ') = ' '
272272
* CharUtils.toChar('A') = 'A'
273-
* CharUtils.toChar(null) throws IllegalArgumentException
273+
* CharUtils.toChar(null) throws NullPointerException
274274
* </pre>
275275
*
276276
* @param ch the character to convert
@@ -305,7 +305,7 @@ public static char toChar(final Character ch, final char defaultValue) {
305305
* <pre>
306306
* CharUtils.toChar("A") = 'A'
307307
* CharUtils.toChar("BA") = 'B'
308-
* CharUtils.toChar(null) throws IllegalArgumentException
308+
* CharUtils.toChar(null) throws NullPointerException
309309
* CharUtils.toChar("") throws IllegalArgumentException
310310
* </pre>
311311
*
@@ -420,7 +420,7 @@ public static int toIntValue(final char ch, final int defaultValue) {
420420
*
421421
* <pre>
422422
* CharUtils.toIntValue('3') = 3
423-
* CharUtils.toIntValue(null) throws IllegalArgumentException
423+
* CharUtils.toIntValue(null) throws NullPointerException
424424
* CharUtils.toIntValue('A') throws IllegalArgumentException
425425
* </pre>
426426
*

0 commit comments

Comments
 (0)