Change-Id: I80ce98511a6e9048f1eea93288d6960dcbf3326f
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* 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);
return ok;
} finally {
if (flush)
- inserter.release();
- reader.release();
+ inserter.close();
+ reader.close();
}
}