fix the java checkcode bug