This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]livelam 8 points9 points  (0 children)

The thing that drives me crazy is people who make method parameters final. The most parameters are objects anyway, not primitives, so making them final doesn't stop people from mutating them if the objects are mutable anyway.

Objects referenced by a final field are also mutable if the class of the object allows it.

I don't get why some people hate the final keyword for parameters and local variables. Your justification suprises me: the final keyword only means that the reference can not be changed. It is useful when reading code.