fix java warning