Skip to content

Commit 9b79bff

Browse files
committed
Fix typo in the KafkaListenerErrorHandler
**Chery-pick to 2.0.x and 1.3.x** (cherry picked from commit 1bef976)
1 parent c0db1ce commit 9b79bff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaListenerErrorHandler.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 the original author or authors.
2+
* Copyright 2017-2018 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.
@@ -28,6 +28,8 @@
2828
*
2929
* @author Venil Noronha
3030
* @author Gary Russell
31+
* @author Artem Bilan
32+
*
3133
* @since 1.3
3234
*/
3335
@FunctionalInterface
@@ -38,7 +40,7 @@ public interface KafkaListenerErrorHandler {
3840
* @param message the spring-messaging message.
3941
* @param exception the exception the listener threw, wrapped in a
4042
* {@link ListenerExecutionFailedException}.
41-
* @return the return value is ignored unless the annoated method has a
43+
* @return the return value is ignored unless the annotated method has a
4244
* {@code @SendTo} annotation.
4345
* @throws Exception an exception which may be the original or different.
4446
*/
@@ -50,12 +52,13 @@ public interface KafkaListenerErrorHandler {
5052
* @param exception the exception the listener threw, wrapped in a
5153
* {@link ListenerExecutionFailedException}.
5254
* @param consumer the consumer.
53-
* @return the return value is ignored unless the annoated method has a
55+
* @return the return value is ignored unless the annotated method has a
5456
* {@code @SendTo} annotation.
5557
* @throws Exception an exception which may be the original or different.
5658
*/
5759
default Object handleError(Message<?> message, ListenerExecutionFailedException exception,
5860
Consumer<?, ?> consumer) throws Exception {
61+
5962
return handleError(message, exception);
6063
}
6164

0 commit comments

Comments
 (0)