You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/02/22 23:33:08 UTC

[commons-lang] branch master updated: Simpler NPE message for new method.

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 94b3784  Simpler NPE message for new method.
94b3784 is described below

commit 94b3784fdec5d0e9d63e4aec6772144b68283790
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Feb 22 18:33:04 2020 -0500

    Simpler NPE message for new method.
---
 src/main/java/org/apache/commons/lang3/Range.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/lang3/Range.java b/src/main/java/org/apache/commons/lang3/Range.java
index 628653a..b7f0b1c 100644
--- a/src/main/java/org/apache/commons/lang3/Range.java
+++ b/src/main/java/org/apache/commons/lang3/Range.java
@@ -475,7 +475,7 @@ public final class Range<T> implements Serializable {
      */
     public T fit(final T element) {
         // Comparable API says throw NPE on null
-        Validate.notNull(element, "Element is null");
+        Validate.notNull(element, "element");
         if (isAfter(element)) {
             return minimum;
         } else if (isBefore(element)) {