Skip to content

Commit 66b91de

Browse files
committed
Fix Compiler Warnings
1 parent 86c9aa1 commit 66b91de

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ private void resolveContentTypeConverter(MethodKafkaListenerEndpoint<?, ?> endpo
643643
}
644644
}
645645

646+
@SuppressWarnings({ "rawtypes", "unchecked" })
646647
private void resolveFilter(MethodKafkaListenerEndpoint<?, ?> endpoint, KafkaListener kafkaListener) {
647648
Object filter = resolveExpression(kafkaListener.filter());
648649
if (filter instanceof RecordFilterStrategy) {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ public final void addRetryableExceptions(Class<? extends Exception>... exception
134134
add(true, exceptionTypes);
135135
}
136136

137+
@SafeVarargs
138+
@SuppressWarnings("varargs")
137139
private void add(boolean classified, Class<? extends Exception>... exceptionTypes) {
138140
Assert.notNull(exceptionTypes, "'exceptionTypes' cannot be null");
139141
Assert.noNullElements(exceptionTypes, "'exceptionTypes' cannot contain nulls");

0 commit comments

Comments
 (0)