Author: ritchiem
Date: Wed May  9 08:23:33 2007
New Revision: 536565

URL: http://svn.apache.org/viewvc?view=rev&rev=536565
Log:
Merged revisions 536498-536499 via svnmerge from 
https://svn.apache.org/repos/asf/incubator/qpid/branches/M2

........
  r536498 | ritchiem | 2007-05-09 13:15:55 +0100 (Wed, 09 May 2007) | 1 line
  
  Moved MaxChannelsTest.java to the correct package.
........
  r536499 | ritchiem | 2007-05-09 13:16:17 +0100 (Wed, 09 May 2007) | 1 line
  
  Whitespace + Formatting.
........

Added:
    
incubator/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/protocol/MaxChannelsTest.java
      - copied unchanged from r536499, 
incubator/qpid/branches/M2/java/systests/src/main/java/org/apache/qpid/server/protocol/MaxChannelsTest.java
Removed:
    
incubator/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/channel/MaxChannelsTest.java
Modified:
    incubator/qpid/trunk/qpid/   (props changed)
    
incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/BasicContentHeaderProperties.java

Propchange: incubator/qpid/trunk/qpid/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: 
incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/BasicContentHeaderProperties.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/BasicContentHeaderProperties.java?view=diff&rev=536565&r1=536564&r2=536565
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/BasicContentHeaderProperties.java
 (original)
+++ 
incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/BasicContentHeaderProperties.java
 Wed May  9 08:23:33 2007
@@ -31,26 +31,23 @@
     private static final AMQShortString ZERO_STRING = null;
 
     /**
-     * We store the encoded form when we decode the content header so that if 
we need to
-     * write it out without modifying it we can do so without incurring the 
expense of
-     * reencoding it
+     * We store the encoded form when we decode the content header so that if 
we need to write it out without modifying
+     * it we can do so without incurring the expense of reencoding it
      */
     private byte[] _encodedForm;
 
-    /**
-     * Flag indicating whether the entire content header has been decoded yet
-     */
+    /** Flag indicating whether the entire content header has been decoded yet 
*/
     private boolean _decoded = true;
 
     /**
-     * We have some optimisations for partial decoding for maximum 
performance. The headers are used in the broker
-     * for routing in some cases so we can decode that separately.
+     * We have some optimisations for partial decoding for maximum 
performance. The headers are used in the broker for
+     * routing in some cases so we can decode that separately.
      */
     private boolean _decodedHeaders = true;
 
     /**
-     * We have some optimisations for partial decoding for maximum 
performance. The content type is used by all
-     * clients to determine the message type
+     * We have some optimisations for partial decoding for maximum 
performance. The content type is used by all clients
+     * to determine the message type
      */
     private boolean _decodedContentType = true;
 
@@ -142,9 +139,9 @@
             }
             if ((_propertyFlags & EXPIRATION_MASK) > 0)
             {
-                if(_expiration == 0L)
+                if (_expiration == 0L)
                 {
-                    size+=EncodingUtils.encodedShortStringLength(ZERO_STRING);
+                    size += 
EncodingUtils.encodedShortStringLength(ZERO_STRING);
                 }
                 else
                 {
@@ -237,9 +234,9 @@
             }
             if ((_propertyFlags & EXPIRATION_MASK) != 0)
             {
-                if(_expiration == 0L)
+                if (_expiration == 0L)
                 {
-                    EncodingUtils.writeShortStringBytes(buffer, ZERO_STRING);  
                  
+                    EncodingUtils.writeShortStringBytes(buffer, ZERO_STRING);
                 }
                 else
                 {
@@ -274,7 +271,7 @@
     }
 
     public void populatePropertiesFromBuffer(ByteBuffer buffer, int 
propertyFlags, int size)
-        throws AMQFrameDecodingException
+            throws AMQFrameDecodingException
     {
         _propertyFlags = propertyFlags;
 
@@ -463,7 +460,7 @@
 
     public String getEncodingAsString()
     {
-        
+
         return getEncoding() == null ? null : getEncoding().toString();
     }
 
@@ -575,7 +572,7 @@
     {
         setReplyTo(replyTo == null ? null : new AMQShortString(replyTo));
     }
-    
+
     public void setReplyTo(AMQShortString replyTo)
     {
 
@@ -702,7 +699,7 @@
 
     public void setAppId(String appId)
     {
-        setAppId(appId == null ? null : new AMQShortString(appId));        
+        setAppId(appId == null ? null : new AMQShortString(appId));
     }
 
     public void setAppId(AMQShortString appId)


Reply via email to