From: David ‘Bombe’ Roden Date: Wed, 26 Nov 2014 05:34:15 +0000 (+0100) Subject: Return a collection instead of a list for the friends. X-Git-Tag: 0.9-rc1^2~3^2~10 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3d78e0dc7fc96009e708b19e0c69d6e3112eac72;p=Sone.git Return a collection instead of a list for the friends. --- diff --git a/src/main/java/net/pterodactylus/sone/data/Sone.java b/src/main/java/net/pterodactylus/sone/data/Sone.java index 27f2cb1..04c5f39 100644 --- a/src/main/java/net/pterodactylus/sone/data/Sone.java +++ b/src/main/java/net/pterodactylus/sone/data/Sone.java @@ -341,7 +341,7 @@ public interface Sone extends Identified, Fingerprintable, Comparable { * * @return The friend Sones of this Sone */ - List getFriends(); + Collection getFriends(); /** * Returns whether this Sone has the given Sone as a friend Sone. diff --git a/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java b/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java index b895304..154bfc8 100644 --- a/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java +++ b/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java @@ -339,7 +339,7 @@ public class SoneImpl implements Sone { * * @return The friend Sones of this Sone */ - public List getFriends() { + public Collection getFriends() { return new ArrayList(friendSones); }