Skip to content

Commit 83bcd40

Browse files
committed
Merge pull request #27101 from diguage
* pr/27101: Update copyright year of changed file Delete unnecessary variable Closes gh-27101
2 parents bde6228 + 411745f commit 83bcd40

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -93,8 +93,7 @@ public void fromHeaders(MessageHeaders headers, javax.jms.Message jmsMessage) {
9393
logger.debug("Failed to set JMSType - skipping", ex);
9494
}
9595
}
96-
Set<Map.Entry<String, Object>> entries = headers.entrySet();
97-
for (Map.Entry<String, Object> entry : entries) {
96+
for (Map.Entry<String, Object> entry : headers.entrySet()) {
9897
String headerName = entry.getKey();
9998
if (StringUtils.hasText(headerName) && !headerName.startsWith(JmsHeaders.PREFIX)) {
10099
Object value = entry.getValue();

0 commit comments

Comments
 (0)