mirror of https://github.com/apache/activemq.git
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 e7bce023de
)
This commit is contained in:
parent
d2e49be3a8
commit
a9903148ee
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue