fix java 6 compilation