You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2012/11/16 22:45:00 UTC
svn commit: r1410583 -
/activemq/trunk/activemq-client/src/main/java/org/apache/activemq/util/MarshallingSupport.java
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: