summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Bull2012-09-07 09:39:25 (EDT)
committerIan Bull2012-09-07 09:39:25 (EDT)
commitf46fa11cb711d8421ea0545b72b6ede4aab8f4ab (patch)
tree8f4cbad2585e4eb2b6a1cb3e4d43eaa779e570c8
parent7d8bcd1ea98836605f722f37bd7acf23abc6a595 (diff)
downloadrt.equinox.p2-f46fa11cb711d8421ea0545b72b6ede4aab8f4ab.zip
rt.equinox.p2-f46fa11cb711d8421ea0545b72b6ede4aab8f4ab.tar.gz
rt.equinox.p2-f46fa11cb711d8421ea0545b72b6ede4aab8f4ab.tar.bz2
Added an 'unused' annotation to suppress an unused object allocationv20120907-133925I20120911-1000
-rw-r--r--bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/artifact/UpdateSiteArtifactRepositoryFactory.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/metadata/UpdateSiteMetadataRepositoryFactory.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/artifact/UpdateSiteArtifactRepositoryFactory.java b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/artifact/UpdateSiteArtifactRepositoryFactory.java
index 100046f..e8b6b66 100644
--- a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/artifact/UpdateSiteArtifactRepositoryFactory.java
+++ b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/artifact/UpdateSiteArtifactRepositoryFactory.java
@@ -71,6 +71,7 @@ public class UpdateSiteArtifactRepositoryFactory extends ArtifactRepositoryFacto
return new UpdateSiteArtifactRepository(location, repository);
}
+ @SuppressWarnings("unused")
private static boolean isURL(URI location) {
try {
new URL(location.toASCIIString());
diff --git a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/metadata/UpdateSiteMetadataRepositoryFactory.java b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/metadata/UpdateSiteMetadataRepositoryFactory.java
index d314221..fe5c93a 100644
--- a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/metadata/UpdateSiteMetadataRepositoryFactory.java
+++ b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/metadata/UpdateSiteMetadataRepositoryFactory.java
@@ -68,6 +68,7 @@ public class UpdateSiteMetadataRepositoryFactory extends MetadataRepositoryFacto
return new UpdateSiteMetadataRepository(location, repository);
}
+ @SuppressWarnings("unused")
private static boolean isURL(URI location) {
try {
new URL(location.toASCIIString());