Browse Source

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

Change-Id: I80ce98511a6e9048f1eea93288d6960dcbf3326f
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-4.1
Matthias Sohn 10 years ago
parent
commit
8e332f1057
  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()}. * repository instance returned by {@link #getRepository()}.
*/ */
public void setObjectInserter(ObjectInserter oi) { public void setObjectInserter(ObjectInserter oi) {
walk.release(); walk.close();
reader.release(); reader.close();
inserter.release(); inserter.close();
inserter = oi; inserter = oi;
reader = oi.newReader(); reader = oi.newReader();
walk = new RevWalk(reader); walk = new RevWalk(reader);
@ -206,8 +206,8 @@ public abstract class Merger {
return ok; return ok;
} finally { } finally {
if (flush) if (flush)
inserter.release(); inserter.close();
reader.release(); reader.close();
} }
} }

Loading…
Cancel
Save