remove Java 1.7 API call