Remove Java 1.7 dependency.