From b4b45833977634634093407da37eb508000aeb56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 20 Sep 2011 22:37:10 +0200 Subject: [PATCH] Remove those warning suppressions. Just change the settings of your compiler to ignore those. --- src/main/java/net/pterodactylus/sone/core/Core.java | 4 ---- src/main/java/net/pterodactylus/sone/main/SonePlugin.java | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index e67bf68..a59c96c 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -712,7 +712,6 @@ public class Core extends AbstractService implements IdentityListener, UpdateLis */ public List getReplies(Post post) { Set sones = getSones(); - @SuppressWarnings("hiding") List replies = new ArrayList(); for (Sone sone : sones) { for (Reply reply : sone.getReplies()) { @@ -805,7 +804,6 @@ public class Core extends AbstractService implements IdentityListener, UpdateLis * @return All bookmarked posts */ public Set getBookmarkedPosts() { - @SuppressWarnings("hiding") Set posts = new HashSet(); synchronized (bookmarkedPosts) { for (String bookmarkedPostId : bookmarkedPosts) { @@ -1356,7 +1354,6 @@ public class Core extends AbstractService implements IdentityListener, UpdateLis } /* load posts. */ - @SuppressWarnings("hiding") Set posts = new HashSet(); while (true) { String postPrefix = sonePrefix + "/Posts/" + posts.size(); @@ -1379,7 +1376,6 @@ public class Core extends AbstractService implements IdentityListener, UpdateLis } /* load replies. */ - @SuppressWarnings("hiding") Set replies = new HashSet(); while (true) { String replyPrefix = sonePrefix + "/Replies/" + replies.size(); diff --git a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java index 91fb547..d642dd8 100644 --- a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java +++ b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java @@ -145,7 +145,7 @@ public class SonePlugin implements FredPlugin, FredPluginFCP, FredPluginL10n, Fr * {@inheritDoc} */ @Override - public void runPlugin(@SuppressWarnings("hiding") PluginRespirator pluginRespirator) { + public void runPlugin(PluginRespirator pluginRespirator) { this.pluginRespirator = pluginRespirator; /* create a configuration. */ -- 2.7.4