artembilan/spring-integration — comment on commit 6707bc6ed751f83645a5954de180304c42dc8825
File: spring-integration-core/src/main/java/org/springframework/integration/config/xml/HeaderEnricherParserSupport.java line 93
By olegz:

I am not sure I understand what these two lines mean. I know that this is an existing code, but if it is intentional (e.g., assigning the same value to headerName and type) it could be written in a more concise way. For example:
headerName = elementToNameMap.get(elementName);
headerType = headerName;

Could you please investigate