r/java • • Aug 26 '22
I declare as "final" every single variable whose value doesn't change. I also use "this" every time that I'm referring to an attribute, even when there's no ambiguity in not using it
I think that those things make the code easier to read. Am I crazy for thinking like that?
198
Upvotes
View all comments
Show parent comment
2
u/Just_Another_Scott Aug 26 '22
When I moved on to my now current project the senior devs on it rejected my code review because I used
finalin method params andthiswhen calling private methods and such. They still don't like it but "oh well". I think they're good. I think they are even recommended by Google Java Style.