Fixing the Java7 condition