remove jdk7 api usage