Re: Unnecessary uses of final on local variables

2019-06-17 Thread Jacob Barrett
I too am in camp final too. You could say `final boolean useFinal = true`. For all the same reasons Bill stated below. > On Jun 17, 2019, at 5:33 PM, Bill Burcham wrote: > > The final keyword is not redundant—quite the opposite—it's extremely valuable. > > Local variables are not, in general,

Re: Unnecessary uses of final on local variables

2019-06-17 Thread Bill Burcham
The final keyword is not redundant—quite the opposite—it's extremely valuable. Local variables are not, in general, final, unless you declare them as such. That being the case, it is not redundant to declare local variables "final". What the compiler will do for you, is _if_ it can ensure that a