activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject activemq git commit: AMQ-6872 Use correct type casts on ApplicationProperties Map
Date Fri, 08 Dec 2017 16:40:51 GMT
Repository: activemq
Updated Branches:
  refs/heads/master e7bce023d -> 36a287130


AMQ-6872 Use correct type casts on ApplicationProperties Map

Fix missing cast on value out of current proton release.

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

Branch: refs/heads/master
Commit: 36a2871301e9e75c198294d31756b49a22a21fc8
Parents: e7bce02
Author: Timothy Bish <tabish121@gmail.com>
Authored: Fri Dec 8 11:40:34 2017 -0500
Committer: Timothy Bish <tabish121@gmail.com>
Committed: Fri Dec 8 11:40:34 2017 -0500

----------------------------------------------------------------------
 .../apache/activemq/transport/amqp/message/InboundTransformer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/36a28713/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 5b9035d..5a68c77 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,7 +149,7 @@ public abstract class InboundTransformer {
 
         final ApplicationProperties ap = amqp.getApplicationProperties();
         if (ap != null) {
-            for (Map.Entry<String, Object> entry : ap.getValue().entrySet()) {
+            for (Map.Entry<String, Object> entry : ((Map<String, Object>) ap.getValue()).entrySet())
{
                 setProperty(jms,  entry.getKey(), entry.getValue());
             }
         }


Mime
View raw message