2 ms·
I like adding final to most of my local variables. I can declare a variable final, and no matter how complicated the control flow is that assigns its value, I k
by charleslmunger 11y ago
I like adding final to most of my local variables. I can declare a variable final, and no matter how complicated the control flow is that assigns its value, I know the compiler is enforcing that it's only set once. It also avoids accidental = rather than == bugs.