checkstyle java8 violation fixed