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:
Timothy Bish 2017-12-07 14:54:42 -05:00
parent 5fa0bbd515
commit e7bce023de
1 changed files with 2 additions and 2 deletions

View File

@ -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());
}
}