]> source.dussan.org Git - jgit.git/commit
Cleanup TreeWalk creation/release inside StashApplyCommand 58/36958/1
authorShawn Pearce <sop@google.com>
Mon, 24 Nov 2014 19:51:32 +0000 (11:51 -0800)
committerShawn Pearce <sop@google.com>
Mon, 24 Nov 2014 20:59:45 +0000 (12:59 -0800)
commitb88f3a2a2c598958865027c1d2d0adbf89a2db69
treeae54e207dee8d4ad85f7b4ef07f81164c86bb589
parent3bc51889000bd9e3b52203ccdab5f0f77b7100ea
Cleanup TreeWalk creation/release inside StashApplyCommand

The TreeWalk constructor doesn't throw in a meaninful way that
requires cleanup of the not-yet-created TreeWalk.

Hoist the constructor outside of the try/finally and remove the
now unnecessary != null check during the finally.

Change-Id: If5b8bb91562715df0699726648123a47426b9850
org.eclipse.jgit/src/org/eclipse/jgit/api/StashApplyCommand.java