add and fix java thread note