cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@informatik.tu-darmstadt.de>
Subject Re: Antwort: Re: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/modules/input BaseLinkModule.java RequestURIModule.java
Date Mon, 09 Jun 2003 17:18:52 GMT
volker.schmitt@basf-it-services.com wrote:
> may be we can write:
> 
> Object value = getAttribute(name, modeConf, objectModel);
> return (value == null ? null : new Object[]{value});
> 
> If the value is null no Object[] is generated. You need to know, that I am
> the best friend of the GC ;-)
> Sorry for the nitpicking ;-)

Here you go.

> applying to your commit message and in comparison to the second example
> shouldn't it be
> 
> return (result[0] == null? null : result);
> 
> Otherwise it seems to make no sense.

Absolutely.

Thanks again for your attention, Volker & Joerg!

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
     fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


Mime
View raw message