From 300212d7818cc1a4b7b2de5a246c629bf58fce43 Mon Sep 17 00:00:00 2001 From: Esmaeil Chitgar <84287711+EsmaeilChitgar@users.noreply.github.com> Date: Sat, 8 Apr 2023 13:09:36 +0430 Subject: [PATCH] use jsonDeserializer object instead of new one. --- .../org/javadev/kafkaexample/config/KafkaConsumerConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/javadev/kafkaexample/config/KafkaConsumerConfig.java b/app/src/main/java/org/javadev/kafkaexample/config/KafkaConsumerConfig.java index 259940f..21711f9 100644 --- a/app/src/main/java/org/javadev/kafkaexample/config/KafkaConsumerConfig.java +++ b/app/src/main/java/org/javadev/kafkaexample/config/KafkaConsumerConfig.java @@ -37,7 +37,7 @@ public class KafkaConsumerConfig { return new DefaultKafkaConsumerFactory<>( consumerConfig(), new StringDeserializer(), - new JsonDeserializer<>() + jsonDeserializer ); }