activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject activemq git commit: AMQ-5560: fixes typo in exception and drop extra cast
Date Fri, 06 Mar 2015 10:37:27 GMT
Repository: activemq
Updated Branches:
  refs/heads/master 8e551b4c3 -> 84c7c3cdf


AMQ-5560: fixes typo in exception and drop extra cast

https://issues.apache.org/jira/browse/AMQ-5560


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/84c7c3cd
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/84c7c3cd
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/84c7c3cd

Branch: refs/heads/master
Commit: 84c7c3cdf8baea922ac8c7c9a2269b9a5129266b
Parents: 8e551b4
Author: Robert Gemmell <robbie@apache.org>
Authored: Fri Mar 6 10:21:20 2015 +0000
Committer: Robert Gemmell <robbie@apache.org>
Committed: Fri Mar 6 10:26:30 2015 +0000

----------------------------------------------------------------------
 .../apache/activemq/transport/amqp/AmqpProtocolConverter.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/84c7c3cd/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java
----------------------------------------------------------------------
diff --git a/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java
b/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java
index 1e28fef..d0baa8e 100644
--- a/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java
+++ b/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java
@@ -1636,7 +1636,7 @@ class AmqpProtocolConverter implements IAmqpProtocolConverter {
     private DescribedType findFilter(Map<Symbol, Object> filters, Object[] filterIds)
{
 
         if (filterIds == null || filterIds.length == 0) {
-            throw new IllegalArgumentException("Invliad Filter Ids array passed: " + filterIds);
+            throw new IllegalArgumentException("Invalid Filter Ids array passed: " + filterIds);
         }
 
         if (filters == null || filters.isEmpty()) {
@@ -1646,7 +1646,7 @@ class AmqpProtocolConverter implements IAmqpProtocolConverter {
         for (Object value : filters.values()) {
             if (value instanceof DescribedType) {
                 DescribedType describedType = ((DescribedType) value);
-                Object descriptor = ((DescribedType) value).getDescriptor();
+                Object descriptor = describedType.getDescriptor();
 
                 for (Object filterId : filterIds) {
                     if (descriptor.equals(filterId)) {


Mime
View raw message