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.
This commit is contained in:
parent
5fa0bbd515
commit
e7bce023de
|
@ -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