activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r755695 - in /activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf: MessageBuffer.java compiler/AltJavaGenerator.java
Date Wed, 18 Mar 2009 18:39:32 GMT
Author: chirino
Date: Wed Mar 18 18:39:32 2009
New Revision: 755695

URL: http://svn.apache.org/viewvc?rev=755695&view=rev
Log:
Making MessageBuffer extend PBMessage

Modified:
    activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/MessageBuffer.java
    activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/compiler/AltJavaGenerator.java

Modified: activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/MessageBuffer.java
URL: http://svn.apache.org/viewvc/activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/MessageBuffer.java?rev=755695&r1=755694&r2=755695&view=diff
==============================================================================
--- activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/MessageBuffer.java
(original)
+++ activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/MessageBuffer.java
Wed Mar 18 18:39:32 2009
@@ -3,7 +3,7 @@
 import java.io.IOException;
 import java.io.OutputStream;
 
-public interface MessageBuffer {
+public interface MessageBuffer<B, MB extends MessageBuffer> extends PBMessage<B,
MB> {
    
     public int serializedSizeUnframed();
     

Modified: activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/compiler/AltJavaGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/compiler/AltJavaGenerator.java?rev=755695&r1=755694&r2=755695&view=diff
==============================================================================
--- activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/compiler/AltJavaGenerator.java
(original)
+++ activemq/activemq-protobuf/trunk/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/compiler/AltJavaGenerator.java
Wed Mar 18 18:39:32 2009
@@ -359,7 +359,7 @@
         p("}");
         p();
 
-        p("static public final class "+bufferClassName+" implements org.apache.activemq.protobuf.MessageBuffer,
"+className+" {");
+        p("static public final class "+bufferClassName+" implements org.apache.activemq.protobuf.MessageBuffer<"+className+"."+beanClassName+",
"+className+"."+bufferClassName+">, "+className+" {");
         p();
         indent();
         



Mime
View raw message