[Java]: Warnings cleanup.