Polish
This commit is contained in:
parent
a03426af57
commit
23c5549832
|
@ -59,11 +59,11 @@ public class KafkaMetricsAutoConfiguration {
|
|||
}
|
||||
|
||||
private <K, V> void addListener(DefaultKafkaConsumerFactory<K, V> factory, MeterRegistry meterRegistry) {
|
||||
factory.addListener(new MicrometerConsumerListener<K, V>(meterRegistry));
|
||||
factory.addListener(new MicrometerConsumerListener<>(meterRegistry));
|
||||
}
|
||||
|
||||
private <K, V> void addListener(DefaultKafkaProducerFactory<K, V> factory, MeterRegistry meterRegistry) {
|
||||
factory.addListener(new MicrometerProducerListener<K, V>(meterRegistry));
|
||||
factory.addListener(new MicrometerProducerListener<>(meterRegistry));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue