From 3d78e0dc7fc96009e708b19e0c69d6e3112eac72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 26 Nov 2014 06:34:15 +0100 Subject: [PATCH] Return a collection instead of a list for the friends. --- src/main/java/net/pterodactylus/sone/data/Sone.java | 2 +- src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.7.4