From 1debcda3ec1f851da83b7510c1b03a2dbcb71de1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 13 Jul 2015 20:59:55 +0200 Subject: [PATCH] Add second constructor that takes an identifier --- src/main/java/net/pterodactylus/fcp/RemovePeer.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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); + } + } -- 2.7.4