Return a collection instead of a set.
[jFCPlib.git] / src / net / pterodactylus / fcp / highlevel / FcpClient.java
index 027b415..4af4426 100644 (file)
@@ -213,7 +213,7 @@ public class FcpClient {
         * @throws FcpException
         *             if an FCP error occurs
         */
-       public Set<Peer> getPeers(final boolean withMetadata, final boolean withVolatile) throws IOException, FcpException {
+       public Collection<Peer> getPeers(final boolean withMetadata, final boolean withVolatile) throws IOException, FcpException {
                final Set<Peer> peers = Collections.synchronizedSet(new HashSet<Peer>());
                new ExtendedFcpAdapter() {