]> source.dussan.org Git - jgit.git/commit
RevWalk: Do not close reader passed explicitly to constructor 12/43612/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 22:27:53 +0000 (15:27 -0700)
commit1e694f3847e1f379a1c7998ef3b0c890fb04a854
tree2923b0fe9ab4180f239241f4ed9b8bd9a9d522a5
parenta91f87d9e10a6b2df0804269a3d44590a7ded40c
RevWalk: Do not close reader passed explicitly to constructor

The RevWalk(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
RevWalk(Repository) constructor.

Change-Id: Ic0d595dc8d10de79e87549546c6c5ea2dc617e9b
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java