On 9-May-09, at 6:10 AM, Mark Struberg wrote:


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


-1

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: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org


Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
http://twitter.com/SonatypeNexus
http://twitter.com/SonatypeM2E
----------------------------------------------------------

A man enjoys his work when he understands the whole and when he
is responsible for the quality of the whole

 -- Christopher Alexander, A Pattern Language


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to