Hi!

In maven-scm, I saw a lot of 

if (blablubParameter == null
{
   throw new NullPointerException("blablubParameter must not be null!")
}

Shouldn't we use commons.lang.Validate

Validate.notNull(blablubParameter, "blablubParameter must not be null!");

or at least throw InvalidArgumentExceptions instead of NPE?


LieGrue,
strub
----------------------------------------------------------------
“Multiple exclamation marks are a sure sign of a diseased mind!” 
(Sir Terry Pratchett)


      

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to