Hi, On Thu, Jun 6, 2013 at 4:01 PM, Michael Dürig <mdue...@apache.org> wrote: > On 6.6.13 13:41, ju...@apache.org wrote: >> private Head head() { >> - return head.update(); >> + Head newHead = head.update(); >> + if (newHead != head) { >> + head = newHead; >> + } >> + return newHead; >> } > > Isn't this the same as > > return head = head.update()
It is, except for the nice side-effect of being able to easily set a breakpoint on state transitions. BR, Jukka Zitting