You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2017/12/07 19:55:01 UTC

activemq git commit: AMQ-6872 Use correct type casts on ApplicationProperties Map

Repository: activemq
Updated Branches:
  refs/heads/master 5fa0bbd51 -> e7bce023d


AMQ-6872 Use correct type casts on ApplicationProperties Map

Use the spec defined values when casting the Map from the
ApplicationProperties section.  

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

Branch: refs/heads/master
Commit: e7bce023de48591475781ba024104f8010a696fc
Parents: 5fa0bbd
Author: Timothy Bish <ta...@gmail.com>
Authored: Thu Dec 7 14:54:42 2017 -0500
Committer: Timothy Bish <ta...@gmail.com>
Committed: Thu Dec 7 14:54:42 2017 -0500

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


http://git-wip-us.apache.org/repos/asf/activemq/blob/e7bce023/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/message/InboundTransformer.java
----------------------------------------------------------------------
diff --git a/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/message/InboundTransformer.java b/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/message/InboundTransformer.java
index eaea705..5b9035d 100644
--- a/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/message/InboundTransformer.java
+++ b/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/message/InboundTransformer.java
@@ -149,8 +149,8 @@ public abstract class InboundTransformer {
 
         final ApplicationProperties ap = amqp.getApplicationProperties();
         if (ap != null) {
-            for (Map.Entry<Object, Object> entry : (Set<Map.Entry<Object, Object>>) ap.getValue().entrySet()) {
-                setProperty(jms,  entry.getKey().toString(), entry.getValue());
+            for (Map.Entry<String, Object> entry : ap.getValue().entrySet()) {
+                setProperty(jms,  entry.getKey(), entry.getValue());
             }
         }