Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 11 Jan 2012 21:01:33 -0600 Date: Wed, 11 Jan 2012 19:01:30 -0800 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Curious compiler warning References: <9n64rgF40bU1@mid.individual.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 17 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 75.11.53.36 X-Trace: sv3-JWaqvq3/xSLAn8JeLJBrvKLdCkVfaXunkEr1K23k5tOAmDkRzZz2i3DPr8SntjpQ4VcMKtbYVRgAfsQ!HFaBQHrxlgCM6McTshzBqSv1HagT76DtVSbKYBNIJNjwupKb4Pb9PHOCwlBezH6XFgFp2W09t6dt!nWZaIh5b4wMQdPjA9wphTfsKKmwjNLQI3XQVka8EeVQ= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2081 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11257 On 1/11/2012 6:26 PM, Roedy Green wrote: > On Wed, 11 Jan 2012 20:05:25 +0100, "Gavino" > wrote, quoted or indirectly quoted someone who said : > >> It's nothing to do with not using the result - in the original example, the >> result *was* used. It's simply that assigning to a method parameter value is >> considered 'bad style', that's all. > > Normally I mark my parms final, but have modified them. I don't > recall ever seeing that warning. I guess it does not show up in > IntelliJ. I believe the warning originally came from Eclipse. The Eclipse style rules are not carved in stone. A programmer who does not agree with the default settings should change them. Patricia