]> source.dussan.org Git - jgit.git/commitdiff
RevWalk: Stop using deprecated ObjectReader#release() 15/43615/1
authorDave Borowitz <dborowitz@google.com>
Tue, 10 Mar 2015 22:24:19 +0000 (15:24 -0700)
committerDave Borowitz <dborowitz@google.com>
Tue, 10 Mar 2015 22:24:53 +0000 (15:24 -0700)
Change-Id: If4d34f18352bd17467aeded6fd3478f29244657b

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

index 55ffac7c5abf84b2d6703d7c1016fec3b6199749..1dbdc98cea4c3cffd6804e5a6e0a6425b3e6f1c4 100644 (file)
@@ -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);