Skip to content

Commit c22f80f

Browse files
committed
spring-projectsGH-3697: Make DelegatingInvocableHandler.invoke() return null
1 parent 0af670b commit c22f80f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: spring-kafka/src/main/java/org/springframework/kafka/listener/adapter/DelegatingInvocableHandler.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2024 the original author or authors.
2+
* Copyright 2016-2025 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.
@@ -55,6 +55,7 @@
5555
*
5656
* @author Gary Russell
5757
* @author Wang Zhiyang
58+
* @author Ivan Malutin
5859
*
5960
*/
6061
public class DelegatingInvocableHandler {
@@ -190,7 +191,8 @@ public Object invoke(Message<?> message, Object... providedArgs) throws Exceptio
190191
if (result != null) {
191192
Expression replyTo = this.handlerSendTo.get(handler);
192193
return new InvocationResult(result, replyTo, this.handlerReturnsMessage.get(handler));
193-
} else {
194+
}
195+
else {
194196
return null;
195197
}
196198
}

0 commit comments

Comments
 (0)