Simpler NPE message for new method.

This commit is contained in:
Gary Gregory 2020-02-22 18:33:04 -05:00
parent 0f119ef2a6
commit 94b3784fde
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {