]> source.dussan.org Git - jgit.git/commit
SubmoduleWalk#forIndex: Suppress resource warning and update Javadoc 13/119313/4
authorDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 13 Mar 2018 11:31:38 +0000 (20:31 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 14 Mar 2018 01:44:23 +0000 (10:44 +0900)
commit6344e7a0718f722b5b4f9f72b2ea83c0c4dc892b
treedc43ee074c8ed6f32d37a6d44ef54dae5abfcc09
parent4775a394c09be28860b50c3d29ac6c455b50260a
SubmoduleWalk#forIndex: Suppress resource warning and update Javadoc

SubmoduleWalk is auto-closeable, and Eclipse warns that is is not
managed by try-with-resource. However in this case the resource should
not be closed, because the caller needs to use it. Instead, it is the
responsibility of the caller to close it after use.

Update the Javadoc to clarify this, and suppress the warning.

Change-Id: Ib7ba349353bfd3341bdcbe4bb19abaeb9f3aeba5
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/submodule/SubmoduleWalk.java