GRÜN: Erwartungen implementiert
authorKai Moritz <kai@juplo.de>
Sat, 13 Aug 2022 13:24:53 +0000 (15:24 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 13 Aug 2022 13:24:53 +0000 (15:24 +0200)
src/main/java/de/juplo/kafka/SumBusinessLogic.java

index 5cb906a..605e55c 100644 (file)
@@ -31,6 +31,6 @@ public class SumBusinessLogic
 
   public synchronized Optional<Long> getSum(String user)
   {
-    return Optional.empty();
+    return Optional.ofNullable(state.get(user));
   }
 }