From: Kai Moritz Date: Sat, 13 Aug 2022 15:58:22 +0000 (+0200) Subject: GRÜN: Erwartungen implementiert X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=43be1c56d6205a70bc2740ef105f329d5e7461cc;p=demos%2Fkafka%2Ftraining GRÜN: Erwartungen implementiert --- diff --git a/src/main/java/de/juplo/kafka/SumBusinessLogic.java b/src/main/java/de/juplo/kafka/SumBusinessLogic.java index 27ddebb..a767aea 100644 --- a/src/main/java/de/juplo/kafka/SumBusinessLogic.java +++ b/src/main/java/de/juplo/kafka/SumBusinessLogic.java @@ -50,7 +50,7 @@ public class SumBusinessLogic if (!state.containsKey(user)) throw new IllegalStateException("No sumation for " + user + " in progress"); - return state.get(user); + return state.remove(user); } protected Map getState()