]> source.dussan.org Git - jgit.git/commit
TreeWalk: Do not close reader passed explicitly to constructor 17/43617/2
authorDave Borowitz <dborowitz@google.com>
Tue, 10 Mar 2015 22:21:06 +0000 (15:21 -0700)
committerDave Borowitz <dborowitz@google.com>
Tue, 10 Mar 2015 23:27:22 +0000 (16:27 -0700)
commit6f4281b11a63ae7834197e981f758a581254598f
treec1bacc4e1c137acd8324938a177b8b3318d71cce
parent421e69a4a02c0b8aa82ca7421af10246f22c389a
TreeWalk: Do not close reader passed explicitly to constructor

The TreeWalk(ObjectReader) constructor is explicitly to handle the case
where the caller is responsible for opening and closing the reader.
The reader should only be closed when it was created in the
TreeWalk(Repository) constructor.

Change-Id: I627681be80d69ea549f953255a64c7b3b68bcec9
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java