From: David ‘Bombe’ Roden Date: Wed, 9 Apr 2008 20:02:32 +0000 (+0000) Subject: rename method X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f8de3d858a34d2828e4b44799db7945d7f4e4a4c;p=jSite2.git rename method git-svn-id: http://trooper/svn/projects/jSite/trunk@678 c3eda9e8-030b-0410-8277-bc7414b0a119 --- 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());