Rename “fcpAdapter” to “fcpListener”.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 19 Mar 2009 20:20:53 +0000 (21:20 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 19 Mar 2009 22:09:10 +0000 (23:09 +0100)
src/net/pterodactylus/fcp/highlevel/FcpClient.java

index f9445c9..a5fba45 100644 (file)
@@ -192,7 +192,7 @@ public class FcpClient {
         */
        public Set<Peer> getPeers() throws IOException, FcpException {
                final Set<Peer> peers = new HashSet<Peer>();
-               ExtendedFcpAdapter fcpAdapter = new ExtendedFcpAdapter() {
+               ExtendedFcpAdapter fcpListener = new ExtendedFcpAdapter() {
 
                        /**
                         * {@inheritDoc}
@@ -210,19 +210,19 @@ public class FcpClient {
                                completionLatch.countDown();
                        }
                };
-               fcpConnection.addFcpListener(fcpAdapter);
+               fcpConnection.addFcpListener(fcpListener);
                fcpConnection.sendMessage(new ListPeers("list-peers"));
                try {
                        while (true) {
                                try {
-                                       fcpAdapter.complete();
+                                       fcpListener.complete();
                                        break;
                                } catch (InterruptedException e) {
                                        /* ignore, we’ll loop. */
                                }
                        }
                } finally {
-                       fcpConnection.removeFcpListener(fcpAdapter);
+                       fcpConnection.removeFcpListener(fcpListener);
                }
                if (fcpListener.getFcpException() != null) {
                        throw fcpListener.getFcpException();