diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2015-04-11 00:21:39 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2015-05-21 02:05:45 +0200 |
commit | 686124bec32fcdee1545e7d9c312dcf0276b44af (patch) | |
tree | cd98b171d3b97de6972bf1f606f34d72eaf5fa12 /org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java | |
parent | 0e73d395061d1bfee365acaa2f79c392175d13bf (diff) | |
download | jgit-686124bec32fcdee1545e7d9c312dcf0276b44af.tar.gz jgit-686124bec32fcdee1545e7d9c312dcf0276b44af.zip |
Replace deprecated release() methods by close()
See the discussion [1] in the Gerrit mailing list.
[1] https://groups.google.com/forum/#!topic/repo-discuss/RRQT_xCqz4o
Change-Id: I2c67384309c5c2e8511a7d0d4e088b4e95f819ff
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java index f05326900c..5d892019ab 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java @@ -63,7 +63,7 @@ import org.eclipse.jgit.transport.PackParser; * <p> * Objects written by an inserter may not be immediately visible for reading * after the insert method completes. Callers must invoke either - * {@link #release()} or {@link #flush()} prior to updating references or + * {@link #close()} or {@link #flush()} prior to updating references or * otherwise making the returned ObjectIds visible to other code. */ public abstract class ObjectInserter implements AutoCloseable { @@ -91,7 +91,7 @@ public abstract class ObjectInserter implements AutoCloseable { } @Override - public void release() { + public void close() { // Do nothing. } } @@ -149,8 +149,8 @@ public abstract class ObjectInserter implements AutoCloseable { delegate().flush(); } - public void release() { - delegate().release(); + public void close() { + delegate().close(); } } @@ -420,21 +420,10 @@ public abstract class ObjectInserter implements AutoCloseable { * Release any resources used by this inserter. * <p> * An inserter that has been released can be used again, but may need to be - * released after the subsequent usage. Use {@link #close()} instead - */ - @Deprecated - public abstract void release(); - - /** - * Release any resources used by this inserter. - * <p> - * An inserter that has been released can be used again, but may need to be * released after the subsequent usage. * * @since 4.0 */ @Override - public void close() { - release(); - } + public abstract void close(); } |