fix compilation error on jdk8: ensure the compiler doesn't complain
"Merge pull request #7 from mping/jdk8\n\nfix compilation error on jdk8: ensure the compiler doesn't complain"