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 20:07:32 +0000 (22:07 +0200)
src/main/java/de/juplo/kafka/AdderBusinessLogic.java

index df8c5f9..9fd5b0d 100644 (file)
@@ -32,6 +32,6 @@ public class AdderBusinessLogic
 
   public synchronized Optional<Long> getSum(String user)
   {
-    return Optional.empty();
+    return Optional.ofNullable(state.get(user));
   }
 }