From: Kai Moritz Date: Sat, 14 Jan 2023 17:11:56 +0000 (+0100) Subject: fix: Removed unnecessary generic in `ChatHomeService` X-Git-Tag: wip~25 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=17cee1e6d3798abc8c672cbd2dee938e7b2f031b;p=demos%2Fkafka%2Fchat fix: Removed unnecessary generic in `ChatHomeService` --- 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;