Update java warnings and format.