fix generated Java code build problem.