Simple as that. There are absolutely no reasons to stick to Java 7, let alone code in a way which is JRE version-dependent.