From dd9aad09a43ec43cb92baa558e9ae1af6f275449 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 5 May 2024 07:44:43 +0200 Subject: [PATCH] Simplified code using a lambda --- .../de/juplo/demo/kafka/deduplication/Deduplicator.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java b/src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java index e1027d0..4376f30 100644 --- a/src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java +++ b/src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java @@ -79,14 +79,7 @@ public class Deduplicator builder .stream("input") .flatTransformValues( - new ValueTransformerSupplier>() - { - @Override - public ValueTransformer> get() - { - return new DeduplicationTransformer(); - } - }, + () -> new DeduplicationTransformer(), DeduplicationTransformer.STORE) .to("output"); -- 2.20.1