update method java doc