mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r598124 - /mina/trunk/core/src/main/java/org/apache/mina/common/AbstractIoSession.java
Date Mon, 26 Nov 2007 04:39:15 GMT
Author: trustin
Date: Sun Nov 25 20:39:14 2007
New Revision: 598124

URL: http://svn.apache.org/viewvc?rev=598124&view=rev
Log:
Prepended '0x' to ID to tell the id is represented as a hexadecimal value

Modified:
    mina/trunk/core/src/main/java/org/apache/mina/common/AbstractIoSession.java

Modified: mina/trunk/core/src/main/java/org/apache/mina/common/AbstractIoSession.java
URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/common/AbstractIoSession.java?rev=598124&r1=598123&r2=598124&view=diff
==============================================================================
--- mina/trunk/core/src/main/java/org/apache/mina/common/AbstractIoSession.java (original)
+++ mina/trunk/core/src/main/java/org/apache/mina/common/AbstractIoSession.java Sun Nov 25
20:39:14 2007
@@ -783,14 +783,15 @@
     }
     
     private String getIdAsString() {
-        String id = "0x" + Long.toHexString(getId()).toUpperCase();
+        String id = Long.toHexString(getId()).toUpperCase();
 
         // Somewhat inefficient, but it won't happen that often
         // because an ID is often a big integer.
         while (id.length() < 8) {
             id = '0' + id; // padding
         }
-
+        id = "0x" + id;
+        
         return id;
     }
 



Mime
View raw message