From: David ‘Bombe’ Roden Date: Mon, 8 Sep 2014 16:59:44 +0000 (+0200) Subject: Return sets instead of collections for posts and replies. X-Git-Tag: 0.9-rc1^2~3^2~141 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=68d5537f9d502ce6dc7079ae55b52b9284a01899;p=Sone.git Return sets instead of collections for posts and replies. --- diff --git a/src/main/java/net/pterodactylus/sone/core/ConfigurationSoneParser.java b/src/main/java/net/pterodactylus/sone/core/ConfigurationSoneParser.java index 3cb3b68..4f80e08 100644 --- a/src/main/java/net/pterodactylus/sone/core/ConfigurationSoneParser.java +++ b/src/main/java/net/pterodactylus/sone/core/ConfigurationSoneParser.java @@ -1,6 +1,5 @@ package net.pterodactylus.sone.core; -import java.util.Collection; import java.util.HashSet; import java.util.Set; @@ -72,7 +71,7 @@ public class ConfigurationSoneParser { .getValue(defaultValue); } - public Collection parsePosts(PostBuilderFactory postBuilderFactory) + public Set parsePosts(PostBuilderFactory postBuilderFactory) throws InvalidPostFound { Set posts = new HashSet(); while (true) { @@ -109,7 +108,7 @@ public class ConfigurationSoneParser { return (postRecipientId != null) && (postRecipientId.length() == 43); } - public Collection parsePostReplies( + public Set parsePostReplies( PostReplyBuilderFactory postReplyBuilderFactory) { Set replies = new HashSet(); while (true) {