ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Weighill-Smith" <>
Subject RE: [Patch] StringInputStream
Date Tue, 28 Dec 2004 11:05:42 GMT
If we require an object parameter to be non-null our methods test for this and throw an IllegalArgumentException
(note that we don't throw a NullPointerException). Perhaps the same could apply in Ant?

	-----Original Message----- 
	From: Kev Jackson [] 
	Sent: Tue 28/12/2004 10:25 
	To: Ant Developers List 
	Subject: [Patch] StringInputStream

	- removed unused imports
	- changed <CODE> to <code>
	On a related note:
	Parameter x must not be <code>null</code>
	Wouldn't it make sense to throw some kind of exception if parameter x
	was null?  At the beginning of the method, not later on when some other
	method tries something and gets hit with a NullPointerException.
	Some thoughts
	To unsubscribe, e-mail:
	For additional commands, e-mail:

View raw message