diff options
Diffstat (limited to 'src/main/java/at/gv/egiz/moazs/repository')
-rw-r--r-- | src/main/java/at/gv/egiz/moazs/repository/DeliveryRepository.java | 2 | ||||
-rw-r--r-- | src/main/java/at/gv/egiz/moazs/repository/InMemoryDeliveryRepository.java | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/repository/DeliveryRepository.java b/src/main/java/at/gv/egiz/moazs/repository/DeliveryRepository.java index d0a8148..57d2d07 100644 --- a/src/main/java/at/gv/egiz/moazs/repository/DeliveryRepository.java +++ b/src/main/java/at/gv/egiz/moazs/repository/DeliveryRepository.java @@ -17,7 +17,7 @@ public interface DeliveryRepository { void add(MsgResponse response); - Optional<MsgResponse> getResponse(String id); + Optional<MsgResponse> getResponse(String responseID); } diff --git a/src/main/java/at/gv/egiz/moazs/repository/InMemoryDeliveryRepository.java b/src/main/java/at/gv/egiz/moazs/repository/InMemoryDeliveryRepository.java index d9abb7b..3b5a020 100644 --- a/src/main/java/at/gv/egiz/moazs/repository/InMemoryDeliveryRepository.java +++ b/src/main/java/at/gv/egiz/moazs/repository/InMemoryDeliveryRepository.java @@ -39,12 +39,11 @@ public class InMemoryDeliveryRepository implements DeliveryRepository { @Override public void add(MsgResponse response) { String key = response.getResponseID(); - System.out.println("storing with response id " + key); responseRepository.put(key, response); } @Override - public Optional<MsgResponse> getResponse(String id) { - return ofNullable(responseRepository.getIfPresent(id)); + public Optional<MsgResponse> getResponse(String responseID) { + return ofNullable(responseRepository.getIfPresent(responseID)); } } |