Browse Source

Merge "Replace deprecated release() methods by close() in Merger"

stable-4.1
Shawn Pearce 10 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
66a95621a3
  1. 10
      org.eclipse.jgit/src/org/eclipse/jgit/merge/Merger.java

10
org.eclipse.jgit/src/org/eclipse/jgit/merge/Merger.java

@ -125,9 +125,9 @@ public abstract class Merger {
* repository instance returned by {@link #getRepository()}.
*/
public void setObjectInserter(ObjectInserter oi) {
walk.release();
reader.release();
inserter.release();
walk.close();
reader.close();
inserter.close();
inserter = oi;
reader = oi.newReader();
walk = new RevWalk(reader);
@ -206,8 +206,8 @@ public abstract class Merger {
return ok;
} finally {
if (flush)
inserter.release();
reader.release();
inserter.close();
reader.close();
}
}

Loading…
Cancel
Save