From f8de3d858a34d2828e4b44799db7945d7f4e4a4c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 9 Apr 2008 20:02:32 +0000 Subject: [PATCH] rename method git-svn-id: http://trooper/svn/projects/jSite/trunk@678 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/util/fcp/AddPeer.java | 2 +- src/net/pterodactylus/util/fcp/NodeRef.java | 2 +- src/net/pterodactylus/util/fcp/Peer.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net/pterodactylus/util/fcp/AddPeer.java b/src/net/pterodactylus/util/fcp/AddPeer.java index fc34080..c5bac3c 100644 --- a/src/net/pterodactylus/util/fcp/AddPeer.java +++ b/src/net/pterodactylus/util/fcp/AddPeer.java @@ -69,7 +69,7 @@ public class AddPeer extends FcpMessage { setField("lastGoodVersion", nodeRef.getLastGoodVersion().toString()); setField("opennet", String.valueOf(nodeRef.isOpennet())); setField("identity", nodeRef.getIdentity()); - setField("myName", nodeRef.getName()); + setField("myName", nodeRef.getMyName()); setField("location", String.valueOf(nodeRef.getLocation())); setField("testnet", String.valueOf(nodeRef.isTestnet())); setField("version", String.valueOf(nodeRef.getVersion())); diff --git a/src/net/pterodactylus/util/fcp/NodeRef.java b/src/net/pterodactylus/util/fcp/NodeRef.java index cc8241f..1e2cf59 100644 --- a/src/net/pterodactylus/util/fcp/NodeRef.java +++ b/src/net/pterodactylus/util/fcp/NodeRef.java @@ -129,7 +129,7 @@ public class NodeRef { * @return The name of the node, or null if the node is an * opennet peer */ - public String getName() { + public String getMyName() { return name; } diff --git a/src/net/pterodactylus/util/fcp/Peer.java b/src/net/pterodactylus/util/fcp/Peer.java index 7cc3611..40ed6f7 100644 --- a/src/net/pterodactylus/util/fcp/Peer.java +++ b/src/net/pterodactylus/util/fcp/Peer.java @@ -34,7 +34,7 @@ public class Peer extends BaseMessage { nodeRef.setIdentity(getIdentity()); nodeRef.setLastGoodVersion(getLastGoodVersion()); nodeRef.setLocation(getLocation()); - nodeRef.setName(getName()); + nodeRef.setName(getMyName()); nodeRef.setNegotiationTypes(getNegotiationTypes()); nodeRef.setOpennet(isOpennet()); nodeRef.setPhysicalUDP(getPhysicalUDP()); -- 2.7.4