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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

tabish
Repository: activemq
Updated Branches:
  refs/heads/activemq-5.15.x d2e49be3a -> a9903148e


AMQ-6872 Use correct type casts on ApplicationProperties Map

Use the spec defined values when casting the Map from the
ApplicationProperties section.
(cherry picked from commit e7bce023de48591475781ba024104f8010a696fc)


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

Branch: refs/heads/activemq-5.15.x
Commit: a9903148eefab2f58f013033bedb72d79d6a8676
Parents: d2e49be
Author: Timothy Bish <[hidden email]>
Authored: Thu Dec 7 14:54:42 2017 -0500
Committer: Timothy Bish <[hidden email]>
Committed: Thu Dec 7 14:56:09 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/a9903148/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());
             }
         }