fix syntax error in generated Java code