jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <philippe.moua...@gmail.com>
Subject Re: null checks and ArgumentNullException in report package
Date Sun, 13 Dec 2015 13:10:25 GMT
ok or use IllegalArgumentException.

Regards

On Sunday, December 13, 2015, Felix Schumacher <
felix.schumacher@internetallee.de> wrote:

> Hi all,
>
> in the new report package, there are a lot of null-checks of the sort
>
> if (foo == null) {
>  throw new ArgumentNullException("foo");
> }
>
> The ArgumentNullException is a new class from report.core.
>
> We could use Validate.notNull() from commons lang3 instead. It will throw
> an NullPointerException, when a null value is found.
>
> What do you think?
>
> Regards,
>  Felix
>


-- 
Cordialement.
Philippe Mouawad.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message