Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-03-02 09:22:31 +0000
committerAlexander Kurtakov2018-03-02 09:23:37 +0000
commit98a3c2b3358c56689d75038a8ed860571f4cf0b2 (patch)
treeef2945f75916665acc314176bad5242df8b1bcd1
parent9e5ac9146a99bc132960034e5312f1b449a31fd6 (diff)
downloadrt.equinox.p2-98a3c2b3358c56689d75038a8ed860571f4cf0b2.tar.gz
rt.equinox.p2-98a3c2b3358c56689d75038a8ed860571f4cf0b2.tar.xz
rt.equinox.p2-98a3c2b3358c56689d75038a8ed860571f4cf0b2.zip
Bug 423715 - Fix compile warnings
In the nightly build there is: 1. WARNING in /src/org/eclipse/equinox/internal/p2/artifact/processors/checksum/ChecksumUtilities.java (at line 139) MD5Verifier checksumVerifier = new MD5Verifier(md5); Resource leak: 'checksumVerifier' is never closed It's stored and used so shouldn't be closed at this point. Change-Id: I9cba78e8706c3122efc5ae1bc1c9c88c1eeec905 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/checksum/ChecksumUtilities.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/checksum/ChecksumUtilities.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/checksum/ChecksumUtilities.java
index b7f9f04fb..ec6b1cefc 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/checksum/ChecksumUtilities.java
+++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/checksum/ChecksumUtilities.java
@@ -136,6 +136,7 @@ public class ChecksumUtilities {
}
if (md5 != null) {
+ @SuppressWarnings("resource") //It's used later so shouldn't be closed
MD5Verifier checksumVerifier = new MD5Verifier(md5);
if (checksumVerifier.getStatus().isOK())
return Optional.of(checksumVerifier);

Back to the top