[Java]: Tidy up use of final qualifiers.