X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FCore.java;h=a59c96c364c3446eb95c08a890521a9cdc16778f;hb=b4b45833977634634093407da37eb508000aeb56;hp=e67bf68c4ceeef7c0f530458f8ca85ecb9d75002;hpb=0df5e91852f737d760c5a9f54c5667309fbadcc2;p=Sone.git 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();