From: Kai Moritz Date: Sun, 5 May 2024 05:44:43 +0000 (+0200) Subject: Simplified code using a lambda X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=dd9aad09a43ec43cb92baa558e9ae1af6f275449;p=demos%2Fkafka%2Fdeduplication Simplified code using a lambda --- 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");