remove test code
jdk version up to 1.7