fix java compilation warning