Java 7 method removed