From ant-dev-return-33787-qmlist-jakarta-archive-ant-dev=jakarta.apache.org@jakarta.apache.org Thu Jun 13 00:23:42 2002 Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 49189 invoked from network); 13 Jun 2002 00:23:40 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Jun 2002 00:23:40 -0000 Received: (qmail 18232 invoked by uid 97); 13 Jun 2002 00:23:41 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 18099 invoked by uid 97); 13 Jun 2002 00:23:40 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 18045 invoked by uid 98); 13 Jun 2002 00:23:39 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-Id: <5.1.0.14.2.20020613102234.00bb4920@mail.optushome.com.au> X-Sender: xdonald@mail.optushome.com.au X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 13 Jun 2002 10:23:07 +1000 To: "Ant Developers List" From: Peter Donald Subject: Re: [PATCH] Project.java In-Reply-To: <00db01c2126c$eb37b620$1219570f@ranier> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N At 04:57 PM 6/12/2002 -0700, you wrote: > > public String getProperty(String name) { > > - if (name == null) { > > - return null; > > - } > > - String property = (String) properties.get(name); > > - return property; > > + return (name == null ? null : (String) properties.get(name)); > > } > >Does this have any speed benefits? ie, does it map down to a conditional >move CMOV opcode on x86 so you avoid a speculation/branch misprediction >penalty, or is it just a style thing? Just a style thing. Cheers, Peter Donald ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Faced with the choice between changing one's mind, and proving that there is no need to do so - almost everyone gets busy on the proof." - John Kenneth Galbraith ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- To unsubscribe, e-mail: For additional commands, e-mail: