update JavaCodeGenerator