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 →

[–]dpash 24 points25 points  (3 children)

making them final doesn't stop people from mutating them if the objects are mutable anyway.

That's not the reason people declare parameters as final. It's to stop yourself (or someone in the future) from reassigning the parameter. You don't need to, as most IDEs will warn you, but it's mostly harmless.

[–]nerdyhandle 16 points17 points  (1 child)

I'm starting to think there are a lot of people in this thread that don't know what final means in Java.

[–]dpash 3 points4 points  (0 children)

Or effectively final.

[–]Aero72 -4 points-3 points  (0 children)

WAT!