fix java compiler warning