3 ms·
For java code, use final so that you have constants.
by baud147258 9y ago
For java code, use final so that you have constants.
- _asummers 9y agoNote these are only constant pointers. Your data is still mutable if the underlying data structure is mutable, (e.g. HashMap). Haven't used Java in a few years, but I made religious use of final, even in locals and params.
- baud147258 9y agoGood point regarding mutable data. But since we were talking about loglevels, I don't think it's a problem there.