aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2015-04-11 00:21:39 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2015-05-21 02:05:45 +0200
commit686124bec32fcdee1545e7d9c312dcf0276b44af (patch)
treecd98b171d3b97de6972bf1f606f34d72eaf5fa12 /org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
parent0e73d395061d1bfee365acaa2f79c392175d13bf (diff)
downloadjgit-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/ObjectReader.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
index f686c419a4..4c9af85fa8 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
@@ -425,23 +425,12 @@ public abstract class ObjectReader implements AutoCloseable {
* Release any resources used by this reader.
* <p>
* A reader that has been released can be used again, but may need to be
- * released after the subsequent usage. Use {@link #close()} instead.
- */
- @Deprecated
- public void release() {
- // Do nothing.
- }
-
- /**
- * Release any resources used by this reader.
- * <p>
- * A reader 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();
+ // Do nothing.
}
}