activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1410583 - /activemq/trunk/activemq-client/src/main/java/org/apache/activemq/util/MarshallingSupport.java
Date Fri, 16 Nov 2012 21:45:00 GMT
Author: tabish
Date: Fri Nov 16 21:44:59 2012
New Revision: 1410583

URL: http://svn.apache.org/viewvc?rev=1410583&view=rev
Log:
update for: https://issues.apache.org/jira/browse/AMQ-4180 remove debug code

Modified:
    activemq/trunk/activemq-client/src/main/java/org/apache/activemq/util/MarshallingSupport.java

Modified: activemq/trunk/activemq-client/src/main/java/org/apache/activemq/util/MarshallingSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-client/src/main/java/org/apache/activemq/util/MarshallingSupport.java?rev=1410583&r1=1410582&r2=1410583&view=diff
==============================================================================
--- activemq/trunk/activemq-client/src/main/java/org/apache/activemq/util/MarshallingSupport.java
(original)
+++ activemq/trunk/activemq-client/src/main/java/org/apache/activemq/util/MarshallingSupport.java
Fri Nov 16 21:44:59 2012
@@ -96,7 +96,6 @@ public final class MarshallingSupport {
             }
             return rc;
         }
-
     }
 
     public static void marshalPrimitiveList(List list, DataOutputStream out) throws IOException
{
@@ -183,25 +182,17 @@ public final class MarshallingSupport {
             in.readFully((byte[])value);
             break;
         case STRING_TYPE: {
-            if (true) {
-                int length = in.readUnsignedShort();
-                byte data[] = new byte[length];
-                in.readFully(data);
-                value = new UTF8Buffer(data);
-            } else {
-                value = in.readUTF();
-            }
+            int length = in.readUnsignedShort();
+            byte data[] = new byte[length];
+            in.readFully(data);
+            value = new UTF8Buffer(data);
             break;
         }
         case BIG_STRING_TYPE: {
-            if (true) {
-                int length = in.readInt();
-                byte data[] = new byte[length];
-                in.readFully(data);
-                value = new UTF8Buffer(data);
-            } else {
-                value = readUTF8(in);
-            }
+            int length = in.readInt();
+            byte data[] = new byte[length];
+            in.readFully(data);
+            value = new UTF8Buffer(data);
             break;
         }
         case MAP_TYPE:



Mime
View raw message