diff options
author | Gary Gregory <garydgregory@gmail.com> | 2020-11-15 10:40:31 -0500 |
---|---|---|
committer | Gary Gregory <garydgregory@gmail.com> | 2020-11-15 10:40:31 -0500 |
commit | 43b2326713ab952833c2ed4c88fbb0b34cb65436 (patch) | |
tree | e3bd45aa30206ea9c8f40383e599f8e4d0f99726 /src/main/java/org/apache/commons/lang3/CharUtils.java | |
parent | fe1c7903a8b97badb59f4c63b440c35bee4cf6c1 (diff) | |
download | apache-commons-lang-43b2326713ab952833c2ed4c88fbb0b34cb65436.tar.gz |
Consistently use just the parameter name for the message of
NullPointerExceptions.
Diffstat (limited to 'src/main/java/org/apache/commons/lang3/CharUtils.java')
-rw-r--r-- | src/main/java/org/apache/commons/lang3/CharUtils.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/apache/commons/lang3/CharUtils.java b/src/main/java/org/apache/commons/lang3/CharUtils.java index 4e07693fb..11191972a 100644 --- a/src/main/java/org/apache/commons/lang3/CharUtils.java +++ b/src/main/java/org/apache/commons/lang3/CharUtils.java @@ -134,7 +134,7 @@ public class CharUtils { * @throws NullPointerException if the Character is null */ public static char toChar(final Character ch) { - Validate.notNull(ch, "The Character must not be null"); + Validate.notNull(ch, "ch"); return ch.charValue(); } @@ -265,7 +265,7 @@ public class CharUtils { * @throws IllegalArgumentException if the Character is not ASCII numeric */ public static int toIntValue(final Character ch) { - Validate.notNull(ch, "The character must not be null"); + Validate.notNull(ch, "ch"); return toIntValue(ch.charValue()); } |