activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r384634 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/WireFormatInfo.java
Date Thu, 09 Mar 2006 22:44:17 GMT
Author: chirino
Date: Thu Mar  9 14:44:16 2006
New Revision: 384634

URL: http://svn.apache.org/viewcvs?rev=384634&view=rev
Log:
Fix a 1.5 API dependency the slipped in.

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/WireFormatInfo.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/WireFormatInfo.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/WireFormatInfo.java?rev=384634&r1=384633&r2=384634&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/WireFormatInfo.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/WireFormatInfo.java
Thu Mar  9 14:44:16 2006
@@ -227,7 +227,20 @@
 			p = getProperties();
 		} catch (IOException e) {
 		}
-        return "WireFormatInfo { version="+version+", properties="+p+", magic="+Arrays.toString(magic)+"}";
+        return "WireFormatInfo { version="+version+", properties="+p+", magic="+toString(magic)+"}";
+    }
+    
+    private String toString(byte []data) {
+        StringBuffer sb = new StringBuffer();
+        sb.append('[');
+        for (int i = 0; i < data.length; i++) {
+            if( i != 0 ) {
+                sb.append(',');
+            }
+            sb.append((char)data[i]);            
+        }
+        sb.append(']');
+        return sb.toString();
     }
 
     ///////////////////////////////////////////////////////////////



Mime
View raw message