You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-2949: Fix retryCount handling in the DefaultMessagePropertiesConverter
Fixes: #2949
Issue link: #2949
* The handling of `retryCount` is moved into `convertHeadersIfNecessary()`,
so that we can still return a `Collections.emptyMap()` if there are no headers
in the source `MessageProperties` and no `retryCount` to add.
Signed-off-by: Johan Kaving <[email protected]>
[[email protected] improve commit message]
Signed-off-by: Artem Bilan <[email protected]>
(cherry picked from commit f621b86)
Copy file name to clipboardExpand all lines: spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/DefaultMessagePropertiesConverter.java
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@
43
43
* @author Raylax Grey
44
44
* @author Artem Bilan
45
45
* @author Ngoc Nhan
46
+
* @author Johan Kaving
46
47
*
47
48
* @since 1.0
48
49
*/
@@ -155,11 +156,7 @@ else if (MessageProperties.RETRY_COUNT.equals(key)) {
Copy file name to clipboardExpand all lines: spring-rabbit/src/test/java/org/springframework/amqp/rabbit/support/DefaultMessagePropertiesConverterTests.java
0 commit comments