Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2015-03-26 03:08:01 -0400
committerAlexander Kurtakov2015-03-26 03:08:01 -0400
commit78b280357284b0385ce46a57ab4afdcd6ae8e78d (patch)
treea82f3500e2549df00b2a2e96510391bc15d60eaf
parent09155e9ddb667a364a0be35f73cb6da662154a33 (diff)
downloadrt.equinox.p2-78b280357284b0385ce46a57ab4afdcd6ae8e78d.tar.gz
rt.equinox.p2-78b280357284b0385ce46a57ab4afdcd6ae8e78d.tar.xz
rt.equinox.p2-78b280357284b0385ce46a57ab4afdcd6ae8e78d.zip
Bug 463148 - compile warnings in official buildI20150331-0800
Removes 2 now unneeded SuppressWarnings. Change-Id: I78a66ad709892b1368fb10fb2c904b2ed17678dc Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/p2/publisher/eclipse/BundlesAction.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/comparator/JarComparator.java1
2 files changed, 0 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/p2/publisher/eclipse/BundlesAction.java b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/p2/publisher/eclipse/BundlesAction.java
index 988d77316..3307db1cc 100644
--- a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/p2/publisher/eclipse/BundlesAction.java
+++ b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/p2/publisher/eclipse/BundlesAction.java
@@ -665,7 +665,6 @@ public class BundlesAction extends AbstractPublisherAction {
/**
* @return the same result as {@link Headers#parseManifest(InputStream)}, but with a modifiable {@link Headers} instance
*/
- @SuppressWarnings("restriction")
private static Headers<String, String> parseBundleManifestIntoModifyableDictionaryWithCaseInsensitiveKeys(InputStream manifestStream) throws IOException, BundleException {
return (Headers<String, String>) ManifestElement.parseBundleManifest(manifestStream, new Headers<String, String>(10));
}
diff --git a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/comparator/JarComparator.java b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/comparator/JarComparator.java
index 15d483343..8ebea0c89 100644
--- a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/comparator/JarComparator.java
+++ b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/comparator/JarComparator.java
@@ -169,7 +169,6 @@ public class JarComparator implements IArtifactComparator {
return parent.getChildren().length == 0 ? Status.OK_STATUS : parent;
}
- @SuppressWarnings("resource")
public IStatus compare(File sourceFile, File destinationFile) {
ZipFile firstFile = null;
ZipFile secondFile = null;

Back to the top