Skip to content

Commit 48ab189

Browse files
committed
Fix Checkstyle violation for annotation position
https://build.spring.io/browse/SK-SK11X-40
1 parent b02ecd6 commit 48ab189

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,11 @@ private final class ListenerConsumer implements SchedulingAwareRunnable, Consume
314314
*/
315315
private boolean paused;
316316

317-
@SuppressWarnings("unchecked")
317+
@SuppressWarnings({"unchecked", "deprecation"})
318318
ListenerConsumer(GenericMessageListener<?> listener, GenericAcknowledgingMessageListener<?> ackListener) {
319319
Assert.state(!this.isAnyManualAck || !this.autoCommit,
320320
"Consumer cannot be configured for auto commit for ackMode " + this.containerProperties.getAckMode());
321-
@SuppressWarnings("deprecation") final Consumer<K, V> consumer =
321+
final Consumer<K, V> consumer =
322322
KafkaMessageListenerContainer.this.consumerFactory instanceof
323323
org.springframework.kafka.core.ClientIdSuffixAware
324324
? ((org.springframework.kafka.core.ClientIdSuffixAware<K, V>) KafkaMessageListenerContainer

0 commit comments

Comments
 (0)