activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r984489 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/SimplePriorityMessageDispatchChannel.java
Date Wed, 11 Aug 2010 17:38:27 GMT
Author: tabish
Date: Wed Aug 11 17:38:26 2010
New Revision: 984489

URL: http://svn.apache.org/viewvc?rev=984489&view=rev
Log:
fix for: https://issues.apache.org/activemq/browse/AMQ-2866

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/SimplePriorityMessageDispatchChannel.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/SimplePriorityMessageDispatchChannel.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/SimplePriorityMessageDispatchChannel.java?rev=984489&r1=984488&r2=984489&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/SimplePriorityMessageDispatchChannel.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/SimplePriorityMessageDispatchChannel.java
Wed Aug 11 17:38:26 2010
@@ -237,8 +237,8 @@ public class SimplePriorityMessageDispat
     protected int getPriority(MessageDispatch message) {
         int priority = javax.jms.Message.DEFAULT_PRIORITY;
         if (message.getMessage() != null) {
-        Math.max(message.getMessage().getPriority(), 0);
-        priority = Math.min(priority, 9);
+	        priority = Math.max(message.getMessage().getPriority(), 0);
+	        priority = Math.min(priority, 9);
         }
         return priority;
     }



Mime
View raw message