fix checkstyle problems caused by refactor.