rename method
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 9 Apr 2008 20:02:32 +0000 (20:02 +0000)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 9 Apr 2008 20:02:32 +0000 (20:02 +0000)
git-svn-id: http://trooper/svn/projects/jSite/trunk@678 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/util/fcp/AddPeer.java
src/net/pterodactylus/util/fcp/NodeRef.java
src/net/pterodactylus/util/fcp/Peer.java

index fc34080..c5bac3c 100644 (file)
@@ -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()));
index cc8241f..1e2cf59 100644 (file)
@@ -129,7 +129,7 @@ public class NodeRef {
         * @return The name of the node, or <code>null</code> if the node is an
         *         opennet peer
         */
-       public String getName() {
+       public String getMyName() {
                return name;
        }
 
index 7cc3611..40ed6f7 100644 (file)
@@ -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());