final final final
I just spent the first serious day of coding with EAP in a long while.
The most obvious thing I noticed was now idea thinks that just about every third line of my code needs a final token.
I understand the purpose but I've never seen common practice to use the final modifier so heavily in method code. IMO, it really pollutes the readability. Also, it would seem that within the scope of a method, the compiler ought to be able to figure out what references can be made final no?
So my question is: does it really make sense to have idea default to an warning for this inspection? Is there a good reason to encourage developers to use final so often?
请先登录再写评论。
"Dave Griffith" <dave.griffith@cnn.com> wrote in message
news:9179072.1107985907189.JavaMail.itn@is.intellij.net...
It is just the saved value. I wish it were more like static
in C, so it would retain its value when thread leaves a
method, but would allow to be changed as often as I needed.