Re: final modifier in method args and local variables

2020-01-17 Thread Gary Gregory
So you might as well follow convention ;-) Gary On Fri, Jan 17, 2020 at 8:16 AM Ralph Goers wrote: > That is a convention Gary imitated. If you don’t add the final keywords > you can be sure Gary will do it. > > Ralph > > > On Jan 17, 2020, at 3:55 AM, Volkan Yazıcı > wrote: > > > > Hello, > >

Re: final modifier in method args and local variables

2020-01-17 Thread Ralph Goers
That is a convention Gary imitated. If you don’t add the final keywords you can be sure Gary will do it. Ralph > On Jan 17, 2020, at 3:55 AM, Volkan Yazıcı wrote: > > Hello, > > I don't want to turn this into a religious war, but is having final > modifier on both method arguments and local

Re: final modifier in method args and local variables

2020-01-17 Thread Gary Gregory
I'm not sure if we flag missing final keywords in Checkstyle/PMD/Spotbugs but I know projects that do. I'm all for keeping on using final, it's one less thing to consider when grooking code please see https://garygregory.wordpress.com/2013/01/26/the-final-kiss-in-java/ Gary On Fri, Jan 17, 2020

final modifier in method args and local variables

2020-01-17 Thread Volkan Yazıcı
Hello, I don't want to turn this into a religious war, but is having final modifier on both method arguments and local variables a convention that *must* be followed or some legacy followed blindly? Because if I can opt out, I would prefer so. Regards.