From 68d5537f9d502ce6dc7079ae55b52b9284a01899 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 8 Sep 2014 18:59:44 +0200 Subject: [PATCH] Return sets instead of collections for posts and replies. --- .../java/net/pterodactylus/sone/core/ConfigurationSoneParser.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) { -- 2.7.4