db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henning P. Schmiedehausen" <...@intermeta.de>
Subject Re: JDBC Conversion Problem
Date Fri, 27 Jun 2003 09:00:11 GMT
Daniel Rall <dlr@finemaltcoding.com> writes:

>> 330                 if (defValue != null)
>>  
>> I would suggest the following to correct the last issue : 
>>  
>> 330                 if (defValue != null && !defValue.equals(""))

I have a mental programming pattern which says

String xxx ; xxx != null and !xxx.equals("") -> StringUtils.isNotEmpty(xxx)

	Regards
		Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

--- Quote of the week: "It is pointless to tell people anything when
you know that they won't process the message." --- Jonathan Revusky

Mime
View raw message