Simplified/Clearified DSL-usage counter-1.1.0
authorKai Moritz <kai@juplo.de>
Wed, 10 Jul 2024 16:19:36 +0000 (18:19 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 10 Jul 2024 20:16:19 +0000 (22:16 +0200)
src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java

index 5248609..1ca5436 100644 (file)
@@ -36,8 +36,8 @@ public class CounterStreamProcessor
        {
                StreamsBuilder builder = new StreamsBuilder();
 
-               KStream<String, String> source = builder.stream(properties.getInputTopic());
-               source
+               builder
+                               .<String, String>stream(properties.getInputTopic())
                                .map((username, word) ->
                                {
                                        try