-
Notifications
You must be signed in to change notification settings - Fork 0
Description
It's a good practice to use the final keyword as much as possible.
Every variable that isn't going to change it's value should be declared final.
Global variables
If you have constant fields they should be declared final for performance. The order of static and final doesn't matter, but try to keep the order the same in all your files.
E.g. LoginActivity has private static final and private final static which looks messy.
Variables inside methods
See http://programmers.stackexchange.com/questions/115690/why-declare-final-variables-inside-methods
*.... It's a good habit to get into along with a number of others; eg: "Make everything final by default, unless otherwise required", "Make everything private by default, unless otherwise required".... *