removed old jdk 7 code