Browse Source

Delete unnecessary variable

See gh-27101
pull/27126/head
diguage 3 years ago committed by Stephane Nicoll
parent
commit
01df63b9cd
  1. 3
      spring-jms/src/main/java/org/springframework/jms/support/SimpleJmsHeaderMapper.java

3
spring-jms/src/main/java/org/springframework/jms/support/SimpleJmsHeaderMapper.java

@ -93,8 +93,7 @@ public class SimpleJmsHeaderMapper extends AbstractHeaderMapper<Message> impleme @@ -93,8 +93,7 @@ public class SimpleJmsHeaderMapper extends AbstractHeaderMapper<Message> impleme
logger.debug("Failed to set JMSType - skipping", ex);
}
}
Set<Map.Entry<String, Object>> entries = headers.entrySet();
for (Map.Entry<String, Object> entry : entries) {
for (Map.Entry<String, Object> entry : headers.entrySet()) {
String headerName = entry.getKey();
if (StringUtils.hasText(headerName) && !headerName.startsWith(JmsHeaders.PREFIX)) {
Object value = entry.getValue();

Loading…
Cancel
Save