From: Kai Moritz Date: Wed, 10 Jul 2024 16:19:36 +0000 (+0200) Subject: Simplified/Clearified DSL-usage X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=4eec6d479ddd6e20f8a0a62db185afbb891d3fe7;p=demos%2Fkafka%2Fwordcount Simplified/Clearified DSL-usage --- 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