Removed Java 7 API check