diff options
author | Shawn Pearce <spearce@spearce.org> | 2015-05-20 02:02:25 -0400 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2015-05-20 02:02:26 -0400 |
commit | faf0a8f61decbee5b6cb1385c3440261becc2030 (patch) | |
tree | 3808285cbd3e210ca9d921f3caf219315fc9911a | |
parent | 4cbe66af47a093fb503053ac3aa6e9da01dd3d1b (diff) | |
parent | 9d6507ba4d31d1b78950d3086e43cc5fb6813ccc (diff) | |
download | jgit-faf0a8f61decbee5b6cb1385c3440261becc2030.tar.gz jgit-faf0a8f61decbee5b6cb1385c3440261becc2030.zip |
Merge "Fix ObjectReader resources leak"
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java | 4 |
1 files changed, 2 insertions, 2 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 4c4e53455f..f686c419a4 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java @@ -429,7 +429,7 @@ public abstract class ObjectReader implements AutoCloseable { */ @Deprecated public void release() { - close(); + // Do nothing. } /** @@ -442,6 +442,6 @@ public abstract class ObjectReader implements AutoCloseable { */ @Override public void close() { - // Do nothing. + release(); } } |