You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2006/01/28 11:12:48 UTC
svn commit: r373118 -
/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/GUIDFactory.java
Author: arminw
Date: Sat Jan 28 02:12:40 2006
New Revision: 373118
URL: http://svn.apache.org/viewcvs?rev=373118&view=rev
Log:
minor improvement, avoid redundant toString calls
Modified:
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/GUIDFactory.java
Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/GUIDFactory.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/GUIDFactory.java?rev=373118&r1=373117&r2=373118&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/GUIDFactory.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/GUIDFactory.java Sat Jan 28 02:12:40 2006
@@ -21,9 +21,9 @@
/**
* A simple (and fast) factory for (human readable) GUID (Globally Unique ID) strings.
* <br/>
- * A GUID is composed of two parts (separator is ':'):
+ * A GUID is composed of three parts (separator is ':'):
* 1. A two part unique UID for this host
- * 2. The IP-Address of the local machine.
+ * 2. The IP-Address of the local machine
* <br/>
* An example GUID would be: -32766:1135679889968:84.157.57.223.
*
@@ -103,7 +103,7 @@
lastCount = Short.MIN_VALUE;
endPiece = new StringBuffer()
.append(SEPERATOR)
- .append(Long.toString(lastTime))
+ .append(lastTime)
.append(SEPERATOR)
.append(localIPAddress)
.toString();
@@ -113,6 +113,6 @@
}
count = lastCount++;
}
- return Short.toString(count) + endPiece;
+ return count + endPiece;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org