change java compile version to 1.7 and change typo