W dniu 2013-01-18 23:56, Daniel Naber pisze: > On 18.01.2013, 17:35:01 Marcin Milkowski wrote: > >> Also, making a variable final should allow JVM to optimize the code >> more, and hence make it slightly faster. Most coding guidelines actually >> (including the one built-in in Eclipse) require to make as much >> finalization as possible. > > We shouldn't worry about this kind of micro-optimization. Isn't there a > setting in Eclipse that warns about re-assigning variables when the final > keyword is not used?
There is but it is activated (or at least was) in PatternRule, because there is a complex loop with multiple integer variables that are assigned strategically to proceed faster. Alas, FindBugs and re-assignment warning were completely off the mark. I don't see a point in changing such code. So I would be most reluctant to use this kind of setting again. I simply don't find it helpful at all. Regards, Marcin ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel