db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r373118 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/GUIDFactory.java
Date Sat, 28 Jan 2006 10:12:48 GMT
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


Mime
View raw message