Reduce Java version to 7

Java 8 features are not needed at all here.