From java 7 to Java 8