Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 38484 invoked by uid 500); 9 Jun 2003 17:18:54 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 38464 invoked from network); 9 Jun 2003 17:18:54 -0000 Received: from mail1.medianet-world.de (HELO mail.medianet-world.de) (213.157.0.162) by daedalus.apache.org with SMTP; 9 Jun 2003 17:18:54 -0000 Received: (qmail 30006 invoked from network); 9 Jun 2003 17:18:56 -0000 Received: from unknown (HELO informatik.tu-darmstadt.de) (213.157.1.113) by mail.medianet-world.de with SMTP; 9 Jun 2003 17:18:56 -0000 Message-ID: <3EE4C17C.9080303@informatik.tu-darmstadt.de> Date: Mon, 09 Jun 2003 19:18:52 +0200 From: Christian Haul User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030527 Debian/1.3.1-2 X-Accept-Language: de-de, de, en, sv, fr MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: Antwort: Re: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/modules/input BaseLinkModule.java RequestURIModule.java References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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