]> source.dussan.org Git - jgit.git/commit
Use try-with-resources to fix warnings in AddCommand 85/45085/1
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 1 Apr 2015 22:40:44 +0000 (00:40 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 1 Apr 2015 22:41:19 +0000 (00:41 +0200)
commite5b81e49e8819e023ae1ca89e9d9edb218d23371
treed4f6230240a7fecd9341c47f77c8a87e24e6f84e
parentd94ce9c754b740defbd75230663d323f64cc9648
Use try-with-resources to fix warnings in AddCommand

- replaces use of deprecated ObjectInserter.release()
- auto-close TreeWalk

Change-Id: I540ee711b8c3430a71fdff07add506b7d9c039dc
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/AddCommand.java