[Java]: Fix generated output formatting for indentation.