fix warning for JRE 1.6