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:
Timothy Bish 2017-12-07 14:54:42 -05:00
parent d2e49be3a8
commit a9903148ee
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());
}
}