|
From: <sno...@us...> - 2013-09-08 03:28:54
|
Revision: 74
http://sourceforge.net/p/openrpg/svn/74
Author: snowdog_
Date: 2013-09-08 03:28:51 +0000 (Sun, 08 Sep 2013)
Log Message:
-----------
Minor changes to fix 'overridable method calls in constructors' issue (good code practice)
Modified Paths:
--------------
trunk/src/openrpg2/common/core/route/AddressToken.java
Modified: trunk/src/openrpg2/common/core/route/AddressToken.java
===================================================================
--- trunk/src/openrpg2/common/core/route/AddressToken.java 2006-06-16 00:03:20 UTC (rev 73)
+++ trunk/src/openrpg2/common/core/route/AddressToken.java 2013-09-08 03:28:51 UTC (rev 74)
@@ -60,7 +60,9 @@
* Creates a new MessageAddress object that is by default set to deliver to a Client with an undeliverable ID.
*/
public AddressToken() {
- clear();
+ exclude = false;
+ target = CLIENT;
+ id = 0;
}
/**
@@ -68,7 +70,9 @@
* @param id Client ID to deliver message to.
*/
public AddressToken(int id) {
- clear();
+ exclude = false;
+ target = CLIENT;
+ id = 0;
this.id = id;
}
@@ -78,7 +82,9 @@
* @param exclude If true the client will be excluded from message delivery.
*/
public AddressToken(int id, boolean exclude) {
- clear();
+ exclude = false;
+ target = CLIENT;
+ id = 0;
this.id = id;
this.exclude = exclude;
}
@@ -89,7 +95,9 @@
* @param id The id number of the client or group to identify the target.
*/
public AddressToken(char target, int id) {
- clear();
+ exclude = false;
+ target = CLIENT;
+ id = 0;
if (isValidTarget(target)){
this.target = target;
}
@@ -172,6 +180,7 @@
* Generates an encoded address string for this object
* @return encoded message address String.
*/
+ @Override
public String toString(){
StringBuffer temp = new StringBuffer();
if(exclude){
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|