activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r383545 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java
Date Mon, 06 Mar 2006 14:10:45 GMT
Author: chirino
Date: Mon Mar  6 06:10:43 2006
New Revision: 383545

URL: http://svn.apache.org/viewcvs?rev=383545&view=rev
Log:
updated hashCode and equals to pickup new fields.

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java?rev=383545&r1=383544&r2=383545&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java
Mon Mar  6 06:10:43 2006
@@ -72,7 +72,9 @@
         return  version 
             ^ (cacheEnabled         ? 0x10000000:0x20000000)
             ^ (stackTraceEnabled    ? 0x01000000:0x02000000)
-            ^ (tightEncodingEnabled ? 0x00100000:0x00200000);
+            ^ (tightEncodingEnabled ? 0x00100000:0x00200000)
+            ^ (prefixPacketSize     ? 0x00010000:0x00020000)
+            ;
     }
     
     public boolean equals(Object object) {
@@ -82,11 +84,13 @@
         return o.stackTraceEnabled == stackTraceEnabled &&
             o.cacheEnabled == cacheEnabled &&
             o.version == version && 
-            o.tightEncodingEnabled == tightEncodingEnabled;
+            o.tightEncodingEnabled == tightEncodingEnabled && 
+            o.prefixPacketSize == prefixPacketSize 
+            ;
     }
     
     public String toString() {
-        return "OpenWireFormat{version="+version+", cacheEnabled="+cacheEnabled+", stackTraceEnabled="+stackTraceEnabled+"}";
+        return "OpenWireFormat{version="+version+", cacheEnabled="+cacheEnabled+", stackTraceEnabled="+stackTraceEnabled+",
tightEncodingEnabled="+tightEncodingEnabled+", prefixPacketSize="+prefixPacketSize+"}";
     }
     
     public int getVersion() {



Mime
View raw message