From 17cee1e6d3798abc8c672cbd2dee938e7b2f031b Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 14 Jan 2023 18:11:56 +0100 Subject: [PATCH] fix: Removed unnecessary generic in `ChatHomeService` --- .../de/juplo/kafka/chat/backend/domain/ChatHomeService.java | 2 +- .../backend/persistence/inmemory/InMemoryChatHomeService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/juplo/kafka/chat/backend/domain/ChatHomeService.java b/src/main/java/de/juplo/kafka/chat/backend/domain/ChatHomeService.java index d2bc508c..7f13283a 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/domain/ChatHomeService.java +++ b/src/main/java/de/juplo/kafka/chat/backend/domain/ChatHomeService.java @@ -6,7 +6,7 @@ import reactor.core.publisher.Mono; import java.util.UUID; -public interface ChatHomeService +public interface ChatHomeService { Mono putChatRoom(ChatRoom chatRoom); Mono getChatRoom(int shard, UUID id); diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryChatHomeService.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryChatHomeService.java index 2f58ba2a..a9e58942 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryChatHomeService.java +++ b/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryChatHomeService.java @@ -11,7 +11,7 @@ import java.util.*; @Slf4j -public class InMemoryChatHomeService implements ChatHomeService +public class InMemoryChatHomeService implements ChatHomeService { private final ShardingStrategy shardingStrategy; private final Map[] chatrooms; -- 2.20.1