Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Jan Burse Newsgroups: comp.lang.java.programmer Subject: Re: Style Police (a rant) Date: Sat, 27 Aug 2011 13:27:19 +0200 Organization: albasani.net Lines: 14 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net QCvSgCXgF470UVr8xAZHReyyqZQzKYlzYXHXbxUAyoRYgOIyB4+D2fGpc8TTcVck1y0URG/oulIyJm6PlzOaYg== NNTP-Posting-Date: Sat, 27 Aug 2011 11:27:28 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="S5YjNJrgX8mWWZCgZdWHMj84GcDyFVpm73BmQt5NQaybuWguhbns9icTQnk/vTqekQZ405KNwlqPi1AEDxDXD6pUUtQvLvCbkuG0VybfgMAdBhR9uRfWNAdmHtv9gcKm"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110820 Firefox/6.0 SeaMonkey/2.3.1 In-Reply-To: Cancel-Lock: sha1:L3ZriyNQsvfI1siujdr+sJ374QA= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7412 Eric Sosman schrieb: > BUT if you have a concrete non-final method that actually *does* > something, you have not "designed for extension." It's all in aid of > somebody's theory about programming style: You're all right as long as I have noticed that final methods sometimes execute faster than non-final methods. The final modifier gives a hint to the optimizers. So I usually develop for a while without bothering about final, then I run some of the style checks of the IDA, that also spot missing final keywords. And I put the final keywords. Bye