From: David ‘Bombe’ Roden Date: Mon, 13 Jul 2015 18:59:55 +0000 (+0200) Subject: Add second constructor that takes an identifier X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1debcda3ec1f851da83b7510c1b03a2dbcb71de1;p=jFCPlib.git Add second constructor that takes an identifier --- diff --git a/src/main/java/net/pterodactylus/fcp/RemovePeer.java b/src/main/java/net/pterodactylus/fcp/RemovePeer.java index 5eae728..3f867fe 100644 --- a/src/main/java/net/pterodactylus/fcp/RemovePeer.java +++ b/src/main/java/net/pterodactylus/fcp/RemovePeer.java @@ -25,16 +25,15 @@ package net.pterodactylus.fcp; */ public class RemovePeer extends FcpMessage { - /** - * Creates a new “RemovePeer” command that removes the given peer. - * - * @param nodeIdentifier - * The identifier of the node, i.e. its name, identity, or IP - * address and port pair - */ + @Deprecated public RemovePeer(String nodeIdentifier) { super("RemovePeer"); setField("NodeIdentifier", nodeIdentifier); } + public RemovePeer(String identifier, String nodeIdentifier) { + this(nodeIdentifier); + setField("Identifier", identifier); + } + }