From ad5911135e4b4b1eecb7f18b2152dd4973ec1a9e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 27 Jun 2015 23:41:10 +0200 Subject: [PATCH] Make all node-side message constructors public --- src/main/java/net/pterodactylus/fcp/AllData.java | 2 +- .../java/net/pterodactylus/fcp/CloseConnectionDuplicateClientName.java | 2 +- src/main/java/net/pterodactylus/fcp/ConfigData.java | 2 +- src/main/java/net/pterodactylus/fcp/DataFound.java | 2 +- src/main/java/net/pterodactylus/fcp/EndListPeerNotes.java | 2 +- src/main/java/net/pterodactylus/fcp/EndListPeers.java | 2 +- src/main/java/net/pterodactylus/fcp/EndListPersistentRequests.java | 2 +- src/main/java/net/pterodactylus/fcp/FCPPluginReply.java | 2 +- src/main/java/net/pterodactylus/fcp/FinishedCompression.java | 2 +- src/main/java/net/pterodactylus/fcp/GetFailed.java | 2 +- src/main/java/net/pterodactylus/fcp/IdentifierCollision.java | 2 +- src/main/java/net/pterodactylus/fcp/NodeData.java | 2 +- src/main/java/net/pterodactylus/fcp/NodeHello.java | 2 +- src/main/java/net/pterodactylus/fcp/Peer.java | 2 +- src/main/java/net/pterodactylus/fcp/PeerNote.java | 2 +- src/main/java/net/pterodactylus/fcp/PeerRemoved.java | 2 +- src/main/java/net/pterodactylus/fcp/PersistentGet.java | 2 +- src/main/java/net/pterodactylus/fcp/PersistentPut.java | 2 +- src/main/java/net/pterodactylus/fcp/PersistentPutDir.java | 2 +- src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java | 2 +- src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java | 2 +- src/main/java/net/pterodactylus/fcp/PluginInfo.java | 2 +- src/main/java/net/pterodactylus/fcp/ProtocolError.java | 2 +- src/main/java/net/pterodactylus/fcp/PutFailed.java | 2 +- src/main/java/net/pterodactylus/fcp/PutFetchable.java | 2 +- src/main/java/net/pterodactylus/fcp/PutSuccessful.java | 2 +- src/main/java/net/pterodactylus/fcp/SSKKeypair.java | 2 +- src/main/java/net/pterodactylus/fcp/SimpleProgress.java | 2 +- src/main/java/net/pterodactylus/fcp/StartedCompression.java | 2 +- src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java | 2 +- src/main/java/net/pterodactylus/fcp/TestDDAComplete.java | 2 +- src/main/java/net/pterodactylus/fcp/TestDDAReply.java | 2 +- src/main/java/net/pterodactylus/fcp/URIGenerated.java | 2 +- src/main/java/net/pterodactylus/fcp/UnknownNodeIdentifier.java | 2 +- 34 files changed, 34 insertions(+), 34 deletions(-) diff --git a/src/main/java/net/pterodactylus/fcp/AllData.java b/src/main/java/net/pterodactylus/fcp/AllData.java index b4daa27..621e993 100644 --- a/src/main/java/net/pterodactylus/fcp/AllData.java +++ b/src/main/java/net/pterodactylus/fcp/AllData.java @@ -44,7 +44,7 @@ public class AllData extends BaseMessage implements Identifiable { * @param payloadInputStream * The payload */ - AllData(FcpMessage receivedMessage, InputStream payloadInputStream) { + public AllData(FcpMessage receivedMessage, InputStream payloadInputStream) { super(receivedMessage); this.payloadInputStream = payloadInputStream; } diff --git a/src/main/java/net/pterodactylus/fcp/CloseConnectionDuplicateClientName.java b/src/main/java/net/pterodactylus/fcp/CloseConnectionDuplicateClientName.java index db0ff0d..14775ae 100644 --- a/src/main/java/net/pterodactylus/fcp/CloseConnectionDuplicateClientName.java +++ b/src/main/java/net/pterodactylus/fcp/CloseConnectionDuplicateClientName.java @@ -32,7 +32,7 @@ public class CloseConnectionDuplicateClientName extends BaseMessage { * @param receivedMessage * The received message */ - CloseConnectionDuplicateClientName(FcpMessage receivedMessage) { + public CloseConnectionDuplicateClientName(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/ConfigData.java b/src/main/java/net/pterodactylus/fcp/ConfigData.java index 4eb7954..c05eb9f 100644 --- a/src/main/java/net/pterodactylus/fcp/ConfigData.java +++ b/src/main/java/net/pterodactylus/fcp/ConfigData.java @@ -32,7 +32,7 @@ public class ConfigData extends BaseMessage { * @param receivedMessage * The received message */ - ConfigData(FcpMessage receivedMessage) { + public ConfigData(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/DataFound.java b/src/main/java/net/pterodactylus/fcp/DataFound.java index 742f6ac..c00709a 100644 --- a/src/main/java/net/pterodactylus/fcp/DataFound.java +++ b/src/main/java/net/pterodactylus/fcp/DataFound.java @@ -33,7 +33,7 @@ public class DataFound extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - DataFound(FcpMessage receivedMessage) { + public DataFound(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/EndListPeerNotes.java b/src/main/java/net/pterodactylus/fcp/EndListPeerNotes.java index 31a52af..88e8525 100644 --- a/src/main/java/net/pterodactylus/fcp/EndListPeerNotes.java +++ b/src/main/java/net/pterodactylus/fcp/EndListPeerNotes.java @@ -33,7 +33,7 @@ public class EndListPeerNotes extends BaseMessage { * @param fcpMessage * The received message */ - EndListPeerNotes(FcpMessage fcpMessage) { + public EndListPeerNotes(FcpMessage fcpMessage) { super(fcpMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/EndListPeers.java b/src/main/java/net/pterodactylus/fcp/EndListPeers.java index bb98f23..5a505d0 100644 --- a/src/main/java/net/pterodactylus/fcp/EndListPeers.java +++ b/src/main/java/net/pterodactylus/fcp/EndListPeers.java @@ -31,7 +31,7 @@ public class EndListPeers extends BaseMessage implements Identifiable { * @param receivedMessage * The message that was received */ - EndListPeers(FcpMessage receivedMessage) { + public EndListPeers(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/EndListPersistentRequests.java b/src/main/java/net/pterodactylus/fcp/EndListPersistentRequests.java index baa8de2..702cc95 100644 --- a/src/main/java/net/pterodactylus/fcp/EndListPersistentRequests.java +++ b/src/main/java/net/pterodactylus/fcp/EndListPersistentRequests.java @@ -33,7 +33,7 @@ public class EndListPersistentRequests extends BaseMessage { * @param receivedMessage * The received message */ - EndListPersistentRequests(FcpMessage receivedMessage) { + public EndListPersistentRequests(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/FCPPluginReply.java b/src/main/java/net/pterodactylus/fcp/FCPPluginReply.java index 44e96ba..0ed55f0 100644 --- a/src/main/java/net/pterodactylus/fcp/FCPPluginReply.java +++ b/src/main/java/net/pterodactylus/fcp/FCPPluginReply.java @@ -42,7 +42,7 @@ public class FCPPluginReply extends BaseMessage implements Identifiable { * @param payloadInputStream * The optional input stream for the payload */ - FCPPluginReply(FcpMessage receivedMessage, InputStream payloadInputStream) { + public FCPPluginReply(FcpMessage receivedMessage, InputStream payloadInputStream) { super(receivedMessage); this.payloadInputStream = payloadInputStream; } diff --git a/src/main/java/net/pterodactylus/fcp/FinishedCompression.java b/src/main/java/net/pterodactylus/fcp/FinishedCompression.java index 91c0341..d6c3ac7 100644 --- a/src/main/java/net/pterodactylus/fcp/FinishedCompression.java +++ b/src/main/java/net/pterodactylus/fcp/FinishedCompression.java @@ -33,7 +33,7 @@ public class FinishedCompression extends BaseMessage implements Identifiable { * @param receivedMessage * The message that was recevied */ - FinishedCompression(FcpMessage receivedMessage) { + public FinishedCompression(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/GetFailed.java b/src/main/java/net/pterodactylus/fcp/GetFailed.java index 01ec1c8..10c22b5 100644 --- a/src/main/java/net/pterodactylus/fcp/GetFailed.java +++ b/src/main/java/net/pterodactylus/fcp/GetFailed.java @@ -38,7 +38,7 @@ public class GetFailed extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - GetFailed(FcpMessage receivedMessage) { + public GetFailed(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/IdentifierCollision.java b/src/main/java/net/pterodactylus/fcp/IdentifierCollision.java index 5ce6f4a..bd28d67 100644 --- a/src/main/java/net/pterodactylus/fcp/IdentifierCollision.java +++ b/src/main/java/net/pterodactylus/fcp/IdentifierCollision.java @@ -33,7 +33,7 @@ public class IdentifierCollision extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - IdentifierCollision(FcpMessage receivedMessage) { + public IdentifierCollision(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/NodeData.java b/src/main/java/net/pterodactylus/fcp/NodeData.java index f73bbd5..5800172 100644 --- a/src/main/java/net/pterodactylus/fcp/NodeData.java +++ b/src/main/java/net/pterodactylus/fcp/NodeData.java @@ -34,7 +34,7 @@ public class NodeData extends BaseMessage { * @param receivedMessage * The received message */ - NodeData(FcpMessage receivedMessage) { + public NodeData(FcpMessage receivedMessage) { super(receivedMessage); nodeRef = new NodeRef(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/NodeHello.java b/src/main/java/net/pterodactylus/fcp/NodeHello.java index 7409d9b..32a4e33 100644 --- a/src/main/java/net/pterodactylus/fcp/NodeHello.java +++ b/src/main/java/net/pterodactylus/fcp/NodeHello.java @@ -31,7 +31,7 @@ public class NodeHello extends BaseMessage { * @param receivedMessage * The received FCP message */ - NodeHello(FcpMessage receivedMessage) { + public NodeHello(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/Peer.java b/src/main/java/net/pterodactylus/fcp/Peer.java index df1c8f0..72925cb 100644 --- a/src/main/java/net/pterodactylus/fcp/Peer.java +++ b/src/main/java/net/pterodactylus/fcp/Peer.java @@ -36,7 +36,7 @@ public class Peer extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - Peer(FcpMessage receivedMessage) { + public Peer(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/PeerNote.java b/src/main/java/net/pterodactylus/fcp/PeerNote.java index 67cdfa6..1962eee 100644 --- a/src/main/java/net/pterodactylus/fcp/PeerNote.java +++ b/src/main/java/net/pterodactylus/fcp/PeerNote.java @@ -35,7 +35,7 @@ public class PeerNote extends BaseMessage { * @param receivedMessage * The received message */ - PeerNote(FcpMessage receivedMessage) { + public PeerNote(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/PeerRemoved.java b/src/main/java/net/pterodactylus/fcp/PeerRemoved.java index 61aa08d..80da4b6 100644 --- a/src/main/java/net/pterodactylus/fcp/PeerRemoved.java +++ b/src/main/java/net/pterodactylus/fcp/PeerRemoved.java @@ -31,7 +31,7 @@ public class PeerRemoved extends BaseMessage { * @param receivedMessage * The received message */ - PeerRemoved(FcpMessage receivedMessage) { + public PeerRemoved(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/PersistentGet.java b/src/main/java/net/pterodactylus/fcp/PersistentGet.java index c7bfe20..7fc70a9 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentGet.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentGet.java @@ -33,7 +33,7 @@ public class PersistentGet extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - PersistentGet(FcpMessage receivedMessage) { + public PersistentGet(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/PersistentPut.java b/src/main/java/net/pterodactylus/fcp/PersistentPut.java index 2dc8213..f1114ac 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentPut.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentPut.java @@ -32,7 +32,7 @@ public class PersistentPut extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - PersistentPut(FcpMessage receivedMessage) { + public PersistentPut(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/PersistentPutDir.java b/src/main/java/net/pterodactylus/fcp/PersistentPutDir.java index b68c84c..4b668b3 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentPutDir.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentPutDir.java @@ -34,7 +34,7 @@ public class PersistentPutDir extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - PersistentPutDir(FcpMessage receivedMessage) { + public PersistentPutDir(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java b/src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java index f1d2371..5b02624 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java @@ -33,7 +33,7 @@ public class PersistentRequestModified extends BaseMessage implements Identifiab * @param receivedMessage * The received message */ - PersistentRequestModified(FcpMessage receivedMessage) { + public PersistentRequestModified(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java b/src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java index c9ec826..4d15250 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java @@ -33,7 +33,7 @@ public class PersistentRequestRemoved extends BaseMessage implements Identifiabl * @param receivedMessage * The received message */ - PersistentRequestRemoved(FcpMessage receivedMessage) { + public PersistentRequestRemoved(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/PluginInfo.java b/src/main/java/net/pterodactylus/fcp/PluginInfo.java index fbce581..900f6cd 100644 --- a/src/main/java/net/pterodactylus/fcp/PluginInfo.java +++ b/src/main/java/net/pterodactylus/fcp/PluginInfo.java @@ -31,7 +31,7 @@ public class PluginInfo extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - PluginInfo(FcpMessage receivedMessage) { + public PluginInfo(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/ProtocolError.java b/src/main/java/net/pterodactylus/fcp/ProtocolError.java index 8b7b510..80d8487 100644 --- a/src/main/java/net/pterodactylus/fcp/ProtocolError.java +++ b/src/main/java/net/pterodactylus/fcp/ProtocolError.java @@ -31,7 +31,7 @@ public class ProtocolError extends BaseMessage { * @param receivedMessage * The received message */ - ProtocolError(FcpMessage receivedMessage) { + public ProtocolError(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/PutFailed.java b/src/main/java/net/pterodactylus/fcp/PutFailed.java index 8535bcb..7853d39 100644 --- a/src/main/java/net/pterodactylus/fcp/PutFailed.java +++ b/src/main/java/net/pterodactylus/fcp/PutFailed.java @@ -38,7 +38,7 @@ public class PutFailed extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - PutFailed(FcpMessage receivedMessage) { + public PutFailed(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/PutFetchable.java b/src/main/java/net/pterodactylus/fcp/PutFetchable.java index 767b4ad..c9867b0 100644 --- a/src/main/java/net/pterodactylus/fcp/PutFetchable.java +++ b/src/main/java/net/pterodactylus/fcp/PutFetchable.java @@ -33,7 +33,7 @@ public class PutFetchable extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - PutFetchable(FcpMessage receivedMessage) { + public PutFetchable(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/PutSuccessful.java b/src/main/java/net/pterodactylus/fcp/PutSuccessful.java index d8c4434..c5ee7fd 100644 --- a/src/main/java/net/pterodactylus/fcp/PutSuccessful.java +++ b/src/main/java/net/pterodactylus/fcp/PutSuccessful.java @@ -32,7 +32,7 @@ public class PutSuccessful extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - PutSuccessful(FcpMessage receivedMessage) { + public PutSuccessful(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/SSKKeypair.java b/src/main/java/net/pterodactylus/fcp/SSKKeypair.java index 55b27e9..01a95f0 100644 --- a/src/main/java/net/pterodactylus/fcp/SSKKeypair.java +++ b/src/main/java/net/pterodactylus/fcp/SSKKeypair.java @@ -32,7 +32,7 @@ public class SSKKeypair extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - SSKKeypair(FcpMessage receivedMessage) { + public SSKKeypair(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/SimpleProgress.java b/src/main/java/net/pterodactylus/fcp/SimpleProgress.java index 5f4da24..78017ad 100644 --- a/src/main/java/net/pterodactylus/fcp/SimpleProgress.java +++ b/src/main/java/net/pterodactylus/fcp/SimpleProgress.java @@ -32,7 +32,7 @@ public class SimpleProgress extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - SimpleProgress(FcpMessage receivedMessage) { + public SimpleProgress(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/StartedCompression.java b/src/main/java/net/pterodactylus/fcp/StartedCompression.java index 1fd44f1..3aac42c 100644 --- a/src/main/java/net/pterodactylus/fcp/StartedCompression.java +++ b/src/main/java/net/pterodactylus/fcp/StartedCompression.java @@ -33,7 +33,7 @@ public class StartedCompression extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - StartedCompression(FcpMessage receivedMessage) { + public StartedCompression(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java b/src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java index d2e132d..21cd466 100644 --- a/src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java +++ b/src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java @@ -36,7 +36,7 @@ public class SubscribedUSKUpdate extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - SubscribedUSKUpdate(FcpMessage receivedMessage) { + public SubscribedUSKUpdate(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/TestDDAComplete.java b/src/main/java/net/pterodactylus/fcp/TestDDAComplete.java index bea91d9..0a66de7 100644 --- a/src/main/java/net/pterodactylus/fcp/TestDDAComplete.java +++ b/src/main/java/net/pterodactylus/fcp/TestDDAComplete.java @@ -32,7 +32,7 @@ public class TestDDAComplete extends BaseMessage { * @param receivedMessage * The received message */ - TestDDAComplete(FcpMessage receivedMessage) { + public TestDDAComplete(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/TestDDAReply.java b/src/main/java/net/pterodactylus/fcp/TestDDAReply.java index 9764a02..9e2b6d4 100644 --- a/src/main/java/net/pterodactylus/fcp/TestDDAReply.java +++ b/src/main/java/net/pterodactylus/fcp/TestDDAReply.java @@ -36,7 +36,7 @@ public class TestDDAReply extends BaseMessage { * @param receivedMessage * The received message */ - TestDDAReply(FcpMessage receivedMessage) { + public TestDDAReply(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/URIGenerated.java b/src/main/java/net/pterodactylus/fcp/URIGenerated.java index 4939570..1b126f1 100644 --- a/src/main/java/net/pterodactylus/fcp/URIGenerated.java +++ b/src/main/java/net/pterodactylus/fcp/URIGenerated.java @@ -33,7 +33,7 @@ public class URIGenerated extends BaseMessage implements Identifiable { * @param receivedMessage * The received message */ - URIGenerated(FcpMessage receivedMessage) { + public URIGenerated(FcpMessage receivedMessage) { super(receivedMessage); } diff --git a/src/main/java/net/pterodactylus/fcp/UnknownNodeIdentifier.java b/src/main/java/net/pterodactylus/fcp/UnknownNodeIdentifier.java index af7b2f5..a0d0891 100644 --- a/src/main/java/net/pterodactylus/fcp/UnknownNodeIdentifier.java +++ b/src/main/java/net/pterodactylus/fcp/UnknownNodeIdentifier.java @@ -33,7 +33,7 @@ public class UnknownNodeIdentifier extends BaseMessage { * @param receivedMessage * The received message */ - UnknownNodeIdentifier(FcpMessage receivedMessage) { + public UnknownNodeIdentifier(FcpMessage receivedMessage) { super(receivedMessage); } -- 2.7.4