From 450cca137543c1d8adfdca98b410dfefeb6256cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 22 Jul 2009 18:21:34 +0200 Subject: [PATCH] Whitespace fixes. --- src/net/pterodactylus/fcp/ARK.java | 2 +- src/net/pterodactylus/fcp/DSAGroup.java | 2 +- src/net/pterodactylus/fcp/FcpListener.java | 76 ++++++++++++------------- src/net/pterodactylus/fcp/PersistentGet.java | 1 - src/net/pterodactylus/fcp/PersistentPutDir.java | 28 ++++----- src/net/pterodactylus/fcp/Version.java | 2 +- 6 files changed, 55 insertions(+), 56 deletions(-) diff --git a/src/net/pterodactylus/fcp/ARK.java b/src/net/pterodactylus/fcp/ARK.java index f5b977c..6dda319 100644 --- a/src/net/pterodactylus/fcp/ARK.java +++ b/src/net/pterodactylus/fcp/ARK.java @@ -97,4 +97,4 @@ public class ARK { return number; } -} \ No newline at end of file +} diff --git a/src/net/pterodactylus/fcp/DSAGroup.java b/src/net/pterodactylus/fcp/DSAGroup.java index e7031c0..0dc1d40 100644 --- a/src/net/pterodactylus/fcp/DSAGroup.java +++ b/src/net/pterodactylus/fcp/DSAGroup.java @@ -83,4 +83,4 @@ public class DSAGroup { return subprime; } -} \ No newline at end of file +} diff --git a/src/net/pterodactylus/fcp/FcpListener.java b/src/net/pterodactylus/fcp/FcpListener.java index 151fcfe..2efb24e 100644 --- a/src/net/pterodactylus/fcp/FcpListener.java +++ b/src/net/pterodactylus/fcp/FcpListener.java @@ -23,14 +23,14 @@ import java.util.EventListener; /** * Interface for objects that want to be notified on certain FCP events. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ public interface FcpListener extends EventListener { /** * Notifies a listener that a “NodeHello” message was received. - * + * * @param fcpConnection * The connection that received the message * @param nodeHello @@ -41,7 +41,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “CloseConnectionDuplicateClientName” message * was received. - * + * * @param fcpConnection * The connection that received the message * @param closeConnectionDuplicateClientName @@ -51,7 +51,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “SSKKeypair” message was received. - * + * * @param fcpConnection * The connection that received themessage * @param sskKeypair @@ -61,7 +61,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “Peer” message was received. - * + * * @param fcpConnection * The connection that received the message * @param peer @@ -71,7 +71,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that an “EndListPeers” message was received. - * + * * @param fcpConnection * The connection that recevied the message * @param endListPeers @@ -81,7 +81,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “PeerNote” message was received. - * + * * @param fcpConnection * The connection that received the message * @param peerNote @@ -91,7 +91,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that an “EndListPeerNotes” message was received. - * + * * @param fcpConnection * The connection that received the message * @param endListPeerNotes @@ -101,7 +101,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “PeerRemoved” message was received. - * + * * @param fcpConnection * The connection that received the message * @param peerRemoved @@ -111,7 +111,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “NodeData” message was received. - * + * * @param fcpConnection * The connection that received the message * @param nodeData @@ -121,7 +121,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “TestDDAReply” message was received. - * + * * @param fcpConnection * The connection that received the message * @param testDDAReply @@ -131,7 +131,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “TestDDAComplete” was received. - * + * * @param fcpConnection * The connection that received the message * @param testDDAComplete @@ -141,7 +141,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “PersistentGet” was received. - * + * * @param fcpConnection * The connection that received the message * @param persistentGet @@ -151,7 +151,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “PersistentPut” was received. - * + * * @param fcpConnection * The connection that received the message * @param persistentPut @@ -161,7 +161,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “EndListPersistentRequests” was received. - * + * * @param fcpConnection * The connection that received the message * @param endListPersistentRequests @@ -171,7 +171,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “URIGenerated” was received. - * + * * @param fcpConnection * The connection that received the message * @param uriGenerated @@ -181,7 +181,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “DataFound” was received. - * + * * @param fcpConnection * The connection that received the message * @param dataFound @@ -191,7 +191,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that an “AllData” was received. - * + * * @param fcpConnection * The connection that received the message * @param allData @@ -201,7 +201,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “SimpleProgress” was received. - * + * * @param fcpConnection * The connection that received the message * @param simpleProgress @@ -211,7 +211,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “StartedCompression” was received. - * + * * @param fcpConnection * The connection that received the message * @param startedCompression @@ -221,7 +221,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “FinishedCompression” was received. - * + * * @param fcpConnection * The connection that received the message * @param finishedCompression @@ -231,7 +231,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that an “UnknownPeerNoteType” was received. - * + * * @param fcpConnection * The connection that received the message * @param unknownPeerNoteType @@ -241,7 +241,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “UnknownNodeIdentifier” message was received. - * + * * @param fcpConnection * The connection that received the message * @param unknownNodeIdentifier @@ -251,7 +251,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “ConfigData” message was received. - * + * * @param fcpConnection * The connection that received the message * @param configData @@ -261,7 +261,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “GetFailed” message was recevied. - * + * * @param fcpConnection * The connection that received the message * @param getFailed @@ -271,7 +271,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “PutFailed” message was received. - * + * * @param fcpConnection * The connection that received the message * @param putFailed @@ -281,7 +281,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that an “IdentifierCollision” message was receied. - * + * * @param fcpConnection * The connection that received the message * @param identifierCollision @@ -291,7 +291,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “PersistentPutDir” message was received. - * + * * @param fcpConnection * The connection that received the message * @param persistentPutDir @@ -302,7 +302,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “PersistentRequestRemoved” message was * received. - * + * * @param fcpConnection * The connection that received the message * @param persistentRequestRemoved @@ -312,7 +312,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “SubscribedUSKUpdate” message was received. - * + * * @param fcpConnection * The connection that recevied the message * @param subscribedUSKUpdate @@ -322,7 +322,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “PluginInfo” message was received. - * + * * @param fcpConnection * The connection that received the message * @param pluginInfo @@ -332,7 +332,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that an “FCPPluginReply“ message was received. - * + * * @param fcpConnection * The connection that received the message * @param fcpPluginReply @@ -343,7 +343,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “PersistentRequestModified” message was * received. - * + * * @param fcpConnection * The connection that received the message * @param persistentRequestModified @@ -353,7 +353,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “PutSuccessful” message was received. - * + * * @param fcpConnection * The connection that received the message * @param putSuccessful @@ -363,7 +363,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “PutFetchable” message was received. - * + * * @param fcpConnection * The connection that received the message * @param putFetchable @@ -383,7 +383,7 @@ public interface FcpListener extends EventListener { /** * Notifies a listener that a “ProtocolError” was received. - * + * * @param fcpConnection * The connection that received the message * @param protocolError @@ -395,7 +395,7 @@ public interface FcpListener extends EventListener { * Notifies a listener that a message has been received. This method is only * called if {@link FcpConnection#handleMessage(FcpMessage)} does not * recognize the message. Should that ever happen, please file a bug report! - * + * * @param fcpConnection * The connection that received the message * @param fcpMessage @@ -407,7 +407,7 @@ public interface FcpListener extends EventListener { * Notifies a listener that a connection was closed. A closed connection can * be reestablished by calling {@link FcpConnection#connect()} on the same * object again. - * + * * @param fcpConnection * The connection that was closed. * @param throwable diff --git a/src/net/pterodactylus/fcp/PersistentGet.java b/src/net/pterodactylus/fcp/PersistentGet.java index 196c669..ee08ca4 100644 --- a/src/net/pterodactylus/fcp/PersistentGet.java +++ b/src/net/pterodactylus/fcp/PersistentGet.java @@ -19,7 +19,6 @@ package net.pterodactylus.fcp; - /** * The “PersistentGet” message is sent to the client to inform it about a * persistent download, either in the client-local queue or in the global queue. diff --git a/src/net/pterodactylus/fcp/PersistentPutDir.java b/src/net/pterodactylus/fcp/PersistentPutDir.java index 569ca21..bf9f1aa 100644 --- a/src/net/pterodactylus/fcp/PersistentPutDir.java +++ b/src/net/pterodactylus/fcp/PersistentPutDir.java @@ -23,14 +23,14 @@ package net.pterodactylus.fcp; * A “PersistentPutDir” is the response to a {@link ClientPutDiskDir} message. * It is also sent as a possible response to a {@link ListPersistentRequests} * message. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ public class PersistentPutDir extends BaseMessage { /** * Creates a new “PersistentPutDir” message that wraps the received message. - * + * * @param receivedMessage * The received message */ @@ -40,7 +40,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the identifier of the request. - * + * * @return The identifier of the request */ public String getIdentifier() { @@ -49,7 +49,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the URI of the request. - * + * * @return The URI of the request */ public String getURI() { @@ -58,7 +58,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the verbosity of the request. - * + * * @return The verbosity of the request */ public Verbosity getVerbosity() { @@ -67,7 +67,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the priority of the request. - * + * * @return The priority of the request */ public Priority getPriority() { @@ -76,7 +76,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns whether the request is on the global queue. - * + * * @return true if the request is on the global queue, * false if it is on the client-local queue */ @@ -86,7 +86,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the maximum number of retries for failed blocks. - * + * * @return The maximum number of retries, or -1 for endless * retries, or -2 if the number could not be parsed */ @@ -96,7 +96,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the number of files in the request. - * + * * @return The number of files in the request */ public int getFileCount() { @@ -112,7 +112,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the name of the file at the given index. The index is counted * from 0. - * + * * @param fileIndex * The index of the file * @return The name of the file at the given index @@ -124,7 +124,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the length of the file at the given index. The index is counted * from 0. - * + * * @param fileIndex * The index of the file * @return The length of the file at the given index @@ -136,7 +136,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the upload source of the file at the given index. The index is * counted from 0. - * + * * @param fileIndex * The index of the file * @return The upload source of the file at the given index @@ -148,7 +148,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the content type of the file at the given index. The index is * counted from 0. - * + * * @param fileIndex * The index of the file * @return The content type of the file at the given index @@ -161,7 +161,7 @@ public class PersistentPutDir extends BaseMessage { * Returns the filename of the file at the given index. This value is only * returned if {@link #getFileUploadFrom(int)} is returning * {@link UploadFrom#disk}. The index is counted from 0. - * + * * @param fileIndex * The index of the file * @return The filename of the file at the given index diff --git a/src/net/pterodactylus/fcp/Version.java b/src/net/pterodactylus/fcp/Version.java index 2c7bde5..09eb513 100644 --- a/src/net/pterodactylus/fcp/Version.java +++ b/src/net/pterodactylus/fcp/Version.java @@ -133,4 +133,4 @@ public class Version { return nodeName + "," + treeVersion + "," + protocolVersion + "," + buildNumber; } -} \ No newline at end of file +} -- 2.7.4