Browse Source

RevWalk: Stop using deprecated ObjectReader#release()

Change-Id: If4d34f18352bd17467aeded6fd3478f29244657b
stable-4.0
Dave Borowitz 10 years ago
parent
commit
a91f87d9e1
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java

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

@ -1284,13 +1284,13 @@ public class RevWalk implements Iterable<RevCommit>, AutoCloseable {
* All RevFlag instances are also invalidated, and must not be reused.
*/
public void dispose() {
reader.release();
reader.close();
freeFlags = APP_FLAGS;
delayFreeFlags = 0;
retainOnReset = 0;
carryFlags = UNINTERESTING;
objects.clear();
reader.release();
reader.close();
roots.clear();
queue = new DateRevQueue();
pending = new StartGenerator(this);

Loading…
Cancel
Save