Author: chirino
Date: Tue Sep 16 11:23:45 2008
New Revision: 695997

URL: http://svn.apache.org/viewvc?rev=695997&view=rev
Log:
fixing

Modified:
    
activemq/sandbox/activemq-protobuf/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/BaseMessage.java

Modified: 
activemq/sandbox/activemq-protobuf/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/BaseMessage.java
URL: 
http://svn.apache.org/viewvc/activemq/sandbox/activemq-protobuf/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/BaseMessage.java?rev=695997&r1=695996&r2=695997&view=diff
==============================================================================
--- 
activemq/sandbox/activemq-protobuf/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/BaseMessage.java
 (original)
+++ 
activemq/sandbox/activemq-protobuf/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/BaseMessage.java
 Tue Sep 16 11:23:45 2008
@@ -94,7 +94,7 @@
         try {
             byte[] result = new byte[serializedSize()];
             CodedOutputStream output = CodedOutputStream.newInstance(result);
-            writeTo(output);
+            writePartialTo(output);
             output.checkNoSpaceLeft();
             return result;
         } catch (IOException e) {
@@ -176,14 +176,12 @@
     public T mergeFrom(InputStream input) throws IOException {
         CodedInputStream codedInput = CodedInputStream.newInstance(input);
         mergeFrom(codedInput);
-        codedInput.checkLastTagWas(0);
         return (T)this;
     }
 
     public T mergeFrom(InputStream input, ExtensionRegistry extensionRegistry) 
throws IOException {
         CodedInputStream codedInput = CodedInputStream.newInstance(input);
         mergeFrom(codedInput, extensionRegistry);
-        codedInput.checkLastTagWas(0);
         return (T)this;
     }
 


Reply via email to