From 01df63b9cdd12f89763874a14cc50e0c4f8a7e4d Mon Sep 17 00:00:00 2001 From: diguage Date: Sun, 27 Jun 2021 16:49:49 +0800 Subject: [PATCH] Delete unnecessary variable See gh-27101 --- .../org/springframework/jms/support/SimpleJmsHeaderMapper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-jms/src/main/java/org/springframework/jms/support/SimpleJmsHeaderMapper.java b/spring-jms/src/main/java/org/springframework/jms/support/SimpleJmsHeaderMapper.java index 6e02987638..5a513bafbd 100644 --- a/spring-jms/src/main/java/org/springframework/jms/support/SimpleJmsHeaderMapper.java +++ b/spring-jms/src/main/java/org/springframework/jms/support/SimpleJmsHeaderMapper.java @@ -93,8 +93,7 @@ public class SimpleJmsHeaderMapper extends AbstractHeaderMapper impleme logger.debug("Failed to set JMSType - skipping", ex); } } - Set> entries = headers.entrySet(); - for (Map.Entry entry : entries) { + for (Map.Entry entry : headers.entrySet()) { String headerName = entry.getKey(); if (StringUtils.hasText(headerName) && !headerName.startsWith(JmsHeaders.PREFIX)) { Object value = entry.getValue();