Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: Curious compiler warning Date: Wed, 11 Jan 2012 18:26:40 -0800 Organization: Canadian Mind Products Lines: 16 Message-ID: References: <9n64rgF40bU1@mid.individual.net> Reply-To: Roedy Green NNTP-Posting-Host: Z2l1DcCELS0rATq8NqV4Sw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11256 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. -- Roedy Green Canadian Mind Products http://mindprod.com One of the most useful comments you can put in a program is "If you change this, remember to change ?XXX? too".