Browse Source

Don't call reader.close() 2 times on dispose()

Bug: 479406
Change-Id: I6645a8f36ea349a5f04fd14d2c1ef2ecac2bcc37
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
stable-4.2
Andrey Loskutov 9 years ago
parent
commit
9bdbbd32ae
  1. 1
      org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java

1
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java

@ -1295,7 +1295,6 @@ public class RevWalk implements Iterable<RevCommit>, AutoCloseable {
retainOnReset = 0;
carryFlags = UNINTERESTING;
objects.clear();
reader.close();
roots.clear();
queue = new DateRevQueue();
pending = new StartGenerator(this);

Loading…
Cancel
Save