From 4eec6d479ddd6e20f8a0a62db185afbb891d3fe7 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 10 Jul 2024 18:19:36 +0200 Subject: [PATCH] Simplified/Clearified DSL-usage --- .../juplo/kafka/wordcount/counter/CounterStreamProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java b/src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java index 5248609..1ca5436 100644 --- a/src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java +++ b/src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java @@ -36,8 +36,8 @@ public class CounterStreamProcessor { StreamsBuilder builder = new StreamsBuilder(); - KStream source = builder.stream(properties.getInputTopic()); - source + builder + .stream(properties.getInputTopic()) .map((username, word) -> { try -- 2.20.1