fix java 7 dependency