From: David ‘Bombe’ Roden Date: Fri, 23 May 2008 17:17:50 +0000 (+0000) Subject: suppress warnings X-Git-Tag: v0.1.1~119 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8b52e0be592c20d0cf235a1b8292b046985e6e03;p=jFCPlib.git suppress warnings git-svn-id: http://trooper/svn/projects/jFCPlib/branch/high-level-client@941 c3eda9e8-030b-0410-8277-bc7414b0a119 --- diff --git a/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java b/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java index 11a4c98..a86c4cb 100644 --- a/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java +++ b/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java @@ -177,7 +177,7 @@ public class HighLevelClient { * Notifies all listeners that a client has connected. */ private void fireClientConnected() { - for (HighLevelClientListener highLevelClientListener : highLevelClientListeners) { + for (HighLevelClientListener highLevelClientListener: highLevelClientListeners) { highLevelClientListener.clientConnected(this); } } @@ -190,7 +190,7 @@ public class HighLevelClient { * if there was no exception */ private void fireClientDisconnected(Throwable throwable) { - for (HighLevelClientListener highLevelClientListener : highLevelClientListeners) { + for (HighLevelClientListener highLevelClientListener: highLevelClientListeners) { highLevelClientListener.clientDisconnected(this, throwable); } } @@ -225,7 +225,7 @@ public class HighLevelClient { * The progress of the request */ private void fireProgressReceived(String identifier, HighLevelProgress highLevelProgress) { - for (HighLevelProgressListener highLevelProgressListener : highLevelProgressListeners) { + for (HighLevelProgressListener highLevelProgressListener: highLevelProgressListeners) { highLevelProgressListener.progressReceived(this, identifier, highLevelProgress); } } @@ -616,31 +616,31 @@ public class HighLevelClient { } if (identifier == null) { /* key generation callbacks */ - for (Entry> keyGenerationEntry : keyGenerationCallbacks.entrySet()) { + for (Entry> keyGenerationEntry: keyGenerationCallbacks.entrySet()) { keyGenerationEntry.getValue().getIntermediaryResult().setFailed(true); keyGenerationEntry.getValue().setDone(); } keyGenerationCallbacks.clear(); /* peer list callbacks. */ - for (Entry> peerListEntry : peerListCallbacks.entrySet()) { + for (Entry> peerListEntry: peerListCallbacks.entrySet()) { peerListEntry.getValue().getIntermediaryResult().setFailed(true); peerListEntry.getValue().setDone(); } peerListCallbacks.clear(); /* peer callbacks. */ - for (Entry> peerEntry : peerCallbacks.entrySet()) { + for (Entry> peerEntry: peerCallbacks.entrySet()) { peerEntry.getValue().getIntermediaryResult().setFailed(true); peerEntry.getValue().setDone(); } peerCallbacks.clear(); /* direct disk access callbacks. */ - for (Entry> directDiskAccessEntry : directDiskAccessCallbacks.entrySet()) { + for (Entry> directDiskAccessEntry: directDiskAccessCallbacks.entrySet()) { directDiskAccessEntry.getValue().getIntermediaryResult().setFailed(true); directDiskAccessEntry.getValue().setDone(); } directDiskAccessCallbacks.clear(); /* download callbacks. */ - for (Entry> downloadEntry : downloadCallbacks.entrySet()) { + for (Entry> downloadEntry: downloadCallbacks.entrySet()) { downloadEntry.getValue().getIntermediaryResult().setFailed(true); downloadEntry.getValue().setDone(); } @@ -791,6 +791,7 @@ public class HighLevelClient { * @see net.pterodactylus.fcp.FcpListener#receivedDataFound(net.pterodactylus.fcp.FcpConnection, * net.pterodactylus.fcp.DataFound) */ + @SuppressWarnings("synthetic-access") public void receivedDataFound(FcpConnection fcpConnection, DataFound dataFound) { if (fcpConnection != HighLevelClient.this.fcpConnection) { return; @@ -805,7 +806,7 @@ public class HighLevelClient { downloadCallback.setDone(); } HighLevelProgress highLevelProgress = new HighLevelProgress(identifier, true); - fireProgressReceived(identifier , highLevelProgress); + fireProgressReceived(identifier, highLevelProgress); } /** @@ -1069,6 +1070,7 @@ public class HighLevelClient { * @see net.pterodactylus.fcp.FcpListener#receivedPutFailed(net.pterodactylus.fcp.FcpConnection, * net.pterodactylus.fcp.PutFailed) */ + @SuppressWarnings("synthetic-access") public void receivedPutFailed(FcpConnection fcpConnection, PutFailed putFailed) { if (fcpConnection != HighLevelClient.this.fcpConnection) { return; @@ -1091,6 +1093,7 @@ public class HighLevelClient { * @see net.pterodactylus.fcp.FcpListener#receivedPutFetchable(net.pterodactylus.fcp.FcpConnection, * net.pterodactylus.fcp.PutFetchable) */ + @SuppressWarnings("synthetic-access") public void receivedPutFetchable(FcpConnection fcpConnection, PutFetchable putFetchable) { if (fcpConnection != HighLevelClient.this.fcpConnection) { return; @@ -1106,6 +1109,7 @@ public class HighLevelClient { * @see net.pterodactylus.fcp.FcpListener#receivedPutSuccessful(net.pterodactylus.fcp.FcpConnection, * net.pterodactylus.fcp.PutSuccessful) */ + @SuppressWarnings("synthetic-access") public void receivedPutSuccessful(FcpConnection fcpConnection, PutSuccessful putSuccessful) { if (fcpConnection != HighLevelClient.this.fcpConnection) { return; @@ -1236,6 +1240,7 @@ public class HighLevelClient { * @see net.pterodactylus.fcp.FcpListener#receivedURIGenerated(net.pterodactylus.fcp.FcpConnection, * net.pterodactylus.fcp.URIGenerated) */ + @SuppressWarnings("synthetic-access") public void receivedURIGenerated(FcpConnection fcpConnection, URIGenerated uriGenerated) { if (fcpConnection != HighLevelClient.this.fcpConnection) { return;