You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by lq...@apache.org on 2016/10/21 13:26:22 UTC

svn commit: r1766017 - /qpid/java/branches/6.0.x/common/src/main/java/org/apache/qpid/bytebuffer/QpidByteBuffer.java

Author: lquack
Date: Fri Oct 21 13:26:22 2016
New Revision: 1766017

URL: http://svn.apache.org/viewvc?rev=1766017&view=rev
Log:
QPID-7465: [Java Broker] Fix compilation issue on 6.0.x.

Modified:
    qpid/java/branches/6.0.x/common/src/main/java/org/apache/qpid/bytebuffer/QpidByteBuffer.java

Modified: qpid/java/branches/6.0.x/common/src/main/java/org/apache/qpid/bytebuffer/QpidByteBuffer.java
URL: http://svn.apache.org/viewvc/qpid/java/branches/6.0.x/common/src/main/java/org/apache/qpid/bytebuffer/QpidByteBuffer.java?rev=1766017&r1=1766016&r2=1766017&view=diff
==============================================================================
--- qpid/java/branches/6.0.x/common/src/main/java/org/apache/qpid/bytebuffer/QpidByteBuffer.java (original)
+++ qpid/java/branches/6.0.x/common/src/main/java/org/apache/qpid/bytebuffer/QpidByteBuffer.java Fri Oct 21 13:26:22 2016
@@ -446,6 +446,11 @@ public final class QpidByteBuffer
         return new BufferDataOutput();
     }
 
+    public static QpidByteBuffer allocate(boolean direct, int size)
+    {
+        return direct ? allocateDirect(size) : allocate(size);
+    }
+
     public static QpidByteBuffer allocate(int size)
     {
         return new QpidByteBuffer(new NonPooledByteBufferRef(ByteBuffer.allocate(size)));



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org