removed java 1.5 dependency

plz review