mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-09 03:24:58 +00:00
Simpler NPE message for new method.
This commit is contained in:
parent
0f119ef2a6
commit
94b3784fde
@ -475,7 +475,7 @@ public boolean isStartedBy(final T element) {
|
||||
*/
|
||||
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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user