checkstyle config fixed to avoid java8 failers