Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Daniel2013-12-09 18:34:06 +0000
committerKrzysztof Daniel2013-12-09 21:44:18 +0000
commitd7badb5db57e955f940cb43814cb204c71d15985 (patch)
tree5023b8b87fdc6e1004ed52800e288f97b4de9872 /bundles/org.eclipse.equinox.p2.discovery.compatibility
parente68ffe41281328dfb97e02f49327bd040d01b7b9 (diff)
downloadrt.equinox.p2-d7badb5db57e955f940cb43814cb204c71d15985.tar.gz
rt.equinox.p2-d7badb5db57e955f940cb43814cb204c71d15985.tar.xz
rt.equinox.p2-d7badb5db57e955f940cb43814cb204c71d15985.zip
bug 418662 - Get rid of compile warnings in official build -
org.eclipse.equinox.p2.discovery.compatibility Change-Id: Ieaf254570551fef783d1cc6bbf79daf51847d5fa
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.discovery.compatibility')
-rw-r--r--bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/BundleDiscoveryStrategy.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/DirectoryParser.java4
-rw-r--r--bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/DiscoveryRegistryStrategy.java1
3 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/BundleDiscoveryStrategy.java b/bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/BundleDiscoveryStrategy.java
index 29e11627d..bb4796073 100644
--- a/bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/BundleDiscoveryStrategy.java
+++ b/bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/BundleDiscoveryStrategy.java
@@ -28,6 +28,7 @@ public class BundleDiscoveryStrategy extends AbstractDiscoveryStrategy {
// constructor
}
+ @SuppressWarnings("unused")
@Override
public void performDiscovery(IProgressMonitor monitor) throws CoreException {
if (items == null || categories == null) {
diff --git a/bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/DirectoryParser.java b/bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/DirectoryParser.java
index 5cac98fd4..76a9fe10b 100644
--- a/bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/DirectoryParser.java
+++ b/bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/DirectoryParser.java
@@ -60,6 +60,7 @@ public class DirectoryParser {
return contentHandler.directory;
}
+ @SuppressWarnings("unused")
private class DirectoryContentHandler implements ContentHandler {
Directory directory;
@@ -68,6 +69,9 @@ public class DirectoryParser {
// ignore
}
+ /**
+ * @throws SAXException
+ */
public void endDocument() throws SAXException {
// ignore
}
diff --git a/bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/DiscoveryRegistryStrategy.java b/bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/DiscoveryRegistryStrategy.java
index c523fb130..edea13a05 100644
--- a/bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/DiscoveryRegistryStrategy.java
+++ b/bundles/org.eclipse.equinox.p2.discovery.compatibility/src/org/eclipse/equinox/internal/p2/discovery/compatibility/DiscoveryRegistryStrategy.java
@@ -155,6 +155,7 @@ class DiscoveryRegistryStrategy extends RegistryStrategy {
try {
jar.close();
} catch (Exception e) {
+ // ignore
}
}
jars.clear();

Back to the top