philipnee commented on code in PR #14218: URL: https://github.com/apache/kafka/pull/14218#discussion_r1294990279
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerUtils.java: ########## @@ -134,44 +132,20 @@ public static FetchMetricsManager createFetchMetricsManager(Metrics metrics) { } public static <K, V> FetchConfig<K, V> createFetchConfig(ConsumerConfig config, - Deserializer<K> keyDeserializer, - Deserializer<V> valueDeserializer) { - IsolationLevel isolationLevel = createIsolationLevel(config); - return new FetchConfig<>(config, keyDeserializer, valueDeserializer, isolationLevel); + Deserializers<K, V> deserializers) { + IsolationLevel isolationLevel = getConfiguredIsolationLevel(config); + return new FetchConfig<>(config, deserializers, isolationLevel); } - @SuppressWarnings("unchecked") - public static <K, V> List<ConsumerInterceptor<K, V>> createConsumerInterceptors(ConsumerConfig config) { - return ClientUtils.createConfiguredInterceptors(config, - ConsumerConfig.INTERCEPTOR_CLASSES_CONFIG, - ConsumerInterceptor.class); + public static FetchConfig<String, String> createFetchConfig(ConsumerConfig config) { + Deserializers<String, String> deserializers = new Deserializers<>(new StringDeserializer(), new StringDeserializer()); Review Comment: is this right? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org