You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rg...@apache.org on 2016/09/06 15:05:38 UTC

svn commit: r1759442 - /qpid/java/trunk/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/SendingLinkEndpoint.java

Author: rgodfrey
Date: Tue Sep  6 15:05:38 2016
New Revision: 1759442

URL: http://svn.apache.org/viewvc?rev=1759442&view=rev
Log:
QPID-7381 : Address review comments

Modified:
    qpid/java/trunk/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/SendingLinkEndpoint.java

Modified: qpid/java/trunk/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/SendingLinkEndpoint.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/SendingLinkEndpoint.java?rev=1759442&r1=1759441&r2=1759442&view=diff
==============================================================================
--- qpid/java/trunk/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/SendingLinkEndpoint.java (original)
+++ qpid/java/trunk/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/SendingLinkEndpoint.java Tue Sep  6 15:05:38 2016
@@ -42,7 +42,7 @@ public class SendingLinkEndpoint extends
     private Binary _lastDeliveryTag;
     private Map<Binary, UnsignedInteger> _unsettledMap = new HashMap<Binary, UnsignedInteger>();
     private Binary _transactionId;
-    private int _priority;
+    private Integer _priority;
 
 
     public SendingLinkEndpoint(final Session_1_0 sessionEndpoint, final Attach attach)
@@ -76,19 +76,12 @@ public class SendingLinkEndpoint extends
                     }
                     catch (NumberFormatException e)
                     {
-                        _priority = Integer.MAX_VALUE;
                     }
                 }
-                else
+                if(_priority != null)
                 {
-                    _priority = Integer.MAX_VALUE;
+                    actualProperties.put(PRIORITY, _priority);
                 }
-
-                if (_priority < Integer.MAX_VALUE)
-                {
-                    _priority = Integer.MAX_VALUE;
-                }
-                actualProperties.put(PRIORITY, _priority);
             }
             return actualProperties;
         }
@@ -111,7 +104,7 @@ public class SendingLinkEndpoint extends
         return Role.SENDER;
     }
 
-    public int getPriority()
+    public Integer getPriority()
     {
         return _priority;
     }



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