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:33:45 +0200 Organization: albasani.net Lines: 21 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 uGjBsWg+xgLRQc+CIBum0clBgG/vjetVGMUW5qx/i3daMtYbVI590r06bVm2FYVu8FxnmjevP1Jre80l8Y2b9A== NNTP-Posting-Date: Sat, 27 Aug 2011 11:33:53 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="VY4qYpppHHJYyCMJtsX6tSxh0zJu7hbDgl62zvc2mVAIxC56Y5fTJ+fhflSvUNX2U6YPm9H2XTfpTPxngpn//LnCadv6536NneR3NJtWSJSjkXeU9Bs5D1PTD3hBENsg"; 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:YQSlI2mXqGo0oxKRycqZgeM80wc= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7413 Jan Burse schrieb: > 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 The final keywords is found more then ten time (>10) on the following page: http://www.javaperformancetuning.com/tips/rawtips.shtml Bye