Thursday, November 21, 2013

Try/finally to do post-super actions with return

A common pattern for overriding a super method requires keeping the return result of the super method in a temporary variable:


But this temporary variable can be avoid using try/finally:



No comments:

Post a Comment