Skip to content

Commit 93558fd

Browse files
committed
Fix unused imports (Javadocs)
1 parent 7b214f8 commit 93558fd

File tree

9 files changed

+23
-31
lines changed

9 files changed

+23
-31
lines changed

spring-kafka/src/main/java/org/springframework/kafka/annotation/EnableKafkaStreams.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import java.lang.annotation.Target;
2424

2525
import org.springframework.context.annotation.Import;
26-
import org.springframework.kafka.config.StreamsBuilderFactoryBean;
2726

2827
/**
2928
* Enable default Kafka Streams components. To be used on
@@ -43,12 +42,12 @@
4342
* }
4443
* </pre>
4544
*
46-
* That {@link KafkaStreamsDefaultConfiguration#DEFAULT_STREAMS_CONFIG_BEAN_NAME} is required
47-
* to declare {@link StreamsBuilderFactoryBean} with the
48-
* {@link KafkaStreamsDefaultConfiguration#DEFAULT_STREAMS_BUILDER_BEAN_NAME}.
45+
* That {@link KafkaStreamsDefaultConfiguration#DEFAULT_STREAMS_CONFIG_BEAN_NAME} is
46+
* required to declare {@link org.springframework.kafka.config.StreamsBuilderFactoryBean}
47+
* with the {@link KafkaStreamsDefaultConfiguration#DEFAULT_STREAMS_BUILDER_BEAN_NAME}.
4948
* <p>
50-
* Also to enable Kafka Streams feature you should be sure that the {@code kafka-streams} jar is
51-
* on classpath.
49+
* Also to enable Kafka Streams feature you should be sure that the {@code kafka-streams}
50+
* jar is on classpath.
5251
*
5352
* @author Artem Bilan
5453
*

spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaListener.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import java.lang.annotation.RetentionPolicy;
2424
import java.lang.annotation.Target;
2525

26-
import org.springframework.kafka.listener.KafkaListenerErrorHandler;
2726
import org.springframework.messaging.handler.annotation.MessageMapping;
2827

2928
/**
@@ -144,8 +143,8 @@
144143
String containerGroup() default "";
145144

146145
/**
147-
* Set an {@link KafkaListenerErrorHandler} to invoke if the listener method throws
148-
* an exception.
146+
* Set an {@link org.springframework.kafka.listener.KafkaListenerErrorHandler} to
147+
* invoke if the listener method throws an exception.
149148
* @return the error handler.
150149
* @since 1.3
151150
*/

spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaStreamsDefaultConfiguration.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
package org.springframework.kafka.annotation;
1818

19-
import org.apache.kafka.streams.StreamsConfig;
20-
2119
import org.springframework.beans.factory.ObjectProvider;
2220
import org.springframework.beans.factory.UnsatisfiedDependencyException;
2321
import org.springframework.beans.factory.annotation.Qualifier;
@@ -28,7 +26,7 @@
2826

2927
/**
3028
* {@code @Configuration} class that registers a {@link StreamsBuilderFactoryBean}
31-
* if {@link StreamsConfig} with the name
29+
* if {@link org.apache.kafka.streams.StreamsConfig} with the name
3230
* {@link KafkaStreamsDefaultConfiguration#DEFAULT_STREAMS_CONFIG_BEAN_NAME} is present
3331
* in the application context. Otherwise a {@link UnsatisfiedDependencyException} is thrown.
3432
*
@@ -44,7 +42,7 @@
4442
public class KafkaStreamsDefaultConfiguration {
4543

4644
/**
47-
* The bean name for the {@link StreamsConfig} to be used for the default
45+
* The bean name for the {@link org.apache.kafka.streams.StreamsConfig} to be used for the default
4846
* {@link StreamsBuilderFactoryBean} bean definition.
4947
*/
5048
public static final String DEFAULT_STREAMS_CONFIG_BEAN_NAME = "defaultKafkaStreamsConfig";

spring-kafka/src/main/java/org/springframework/kafka/config/KafkaStreamsConfiguration.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@
2121
import java.util.Map;
2222
import java.util.Properties;
2323

24-
import org.apache.kafka.streams.StreamsBuilder;
25-
2624
import org.springframework.core.convert.converter.Converter;
2725
import org.springframework.core.convert.support.DefaultConversionService;
2826
import org.springframework.util.Assert;
2927

3028
/**
31-
* Wrapper for {@link StreamsBuilder} properties.
29+
* Wrapper for {@link org.apache.kafka.streams.StreamsBuilder} properties.
3230
*
3331
* @author Gary Russell
3432
* @since 2.2

spring-kafka/src/main/java/org/springframework/kafka/core/CleanupConfig.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616

1717
package org.springframework.kafka.core;
1818

19-
import org.apache.kafka.streams.KafkaStreams;
20-
2119
/**
22-
* Specifies time of {@link KafkaStreams#cleanUp()} execution.
20+
* Specifies time of {@link org.apache.kafka.streams.KafkaStreams#cleanUp()} execution.
2321
*
2422
* @author Pawel Szymczyk
2523
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import org.springframework.beans.factory.BeanNameAware;
3535
import org.springframework.context.ApplicationEventPublisher;
3636
import org.springframework.context.ApplicationEventPublisherAware;
37-
import org.springframework.context.SmartLifecycle;
3837
import org.springframework.kafka.core.ConsumerFactory;
3938
import org.springframework.util.Assert;
4039
import org.springframework.util.StringUtils;
@@ -53,7 +52,8 @@ public abstract class AbstractMessageListenerContainer<K, V>
5352
implements GenericMessageListenerContainer<K, V>, BeanNameAware, ApplicationEventPublisherAware {
5453

5554
/**
56-
* The default {@link SmartLifecycle} phase for listener containers {@value #DEFAULT_PHASE}.
55+
* The default {@link org.springframework.context.SmartLifecycle} phase for listener
56+
* containers {@value #DEFAULT_PHASE}.
5757
*/
5858
public static final int DEFAULT_PHASE = Integer.MAX_VALUE - 100; // late phase
5959

spring-kafka/src/main/java/org/springframework/kafka/listener/adapter/BatchMessagingMessageListenerAdapter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import org.springframework.kafka.listener.BatchAcknowledgingConsumerAwareMessageListener;
2828
import org.springframework.kafka.listener.KafkaListenerErrorHandler;
2929
import org.springframework.kafka.listener.ListenerExecutionFailedException;
30-
import org.springframework.kafka.listener.MessageListener;
3130
import org.springframework.kafka.support.Acknowledgment;
3231
import org.springframework.kafka.support.KafkaNull;
3332
import org.springframework.kafka.support.converter.BatchMessageConverter;
@@ -107,9 +106,10 @@ public void onMessage(ConsumerRecords<K, V> records, Acknowledgment acknowledgme
107106
}
108107

109108
/**
110-
* Kafka {@link MessageListener} entry point.
111-
* <p> Delegate the message to the target listener method,
112-
* with appropriate conversion of the message argument.
109+
* Kafka {@link org.springframework.kafka.listener.MessageListener} entry point.
110+
* <p>
111+
* Delegate the message to the target listener method, with appropriate conversion of
112+
* the message argument.
113113
* @param records the incoming list of Kafka {@link ConsumerRecord}.
114114
* @param acknowledgment the acknowledgment.
115115
* @param consumer the consumer.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@
3939
import org.springframework.lang.Nullable;
4040
import org.springframework.messaging.Message;
4141
import org.springframework.messaging.handler.annotation.Header;
42-
import org.springframework.messaging.handler.annotation.Payload;
4342
import org.springframework.messaging.handler.annotation.SendTo;
4443
import org.springframework.messaging.handler.invocation.InvocableHandlerMethod;
4544
import org.springframework.util.Assert;
4645

4746

4847
/**
4948
* Delegates to an {@link InvocableHandlerMethod} based on the message payload type.
50-
* Matches a single, non-annotated parameter or one that is annotated with {@link Payload}.
51-
* Matches must be unambiguous.
49+
* Matches a single, non-annotated parameter or one that is annotated with
50+
* {@link org.springframework.messaging.handler.annotation.Payload}. Matches must be
51+
* unambiguous.
5252
*
5353
* @author Gary Russell
5454
*

spring-kafka/src/main/java/org/springframework/kafka/listener/adapter/MessagingMessageListenerAdapter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
import org.springframework.kafka.core.KafkaTemplate;
4848
import org.springframework.kafka.listener.ConsumerSeekAware;
4949
import org.springframework.kafka.listener.ListenerExecutionFailedException;
50-
import org.springframework.kafka.listener.MessageListener;
5150
import org.springframework.kafka.support.Acknowledgment;
5251
import org.springframework.kafka.support.KafkaHeaders;
5352
import org.springframework.kafka.support.KafkaUtils;
@@ -65,8 +64,9 @@
6564
import org.springframework.util.StringUtils;
6665

6766
/**
68-
* An abstract {@link MessageListener} adapter providing the necessary infrastructure
69-
* to extract the payload of a {@link org.springframework.messaging.Message}.
67+
* An abstract {@link org.springframework.kafka.listener.MessageListener} adapter
68+
* providing the necessary infrastructure to extract the payload of a
69+
* {@link org.springframework.messaging.Message}.
7070
*
7171
* @param <K> the key type.
7272
* @param <V> the value type.

0 commit comments

Comments
 (0)