Skip to content

Commit a7a8d7a

Browse files
author
github-actions
committed
chore: Java 스타일 수정
1 parent 4315e9e commit a7a8d7a

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

backend/src/main/java/io/f1/backend/domain/game/app/GameService.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
import static io.f1.backend.domain.quiz.mapper.QuizMapper.toGameStartResponse;
44

5-
import io.f1.backend.domain.game.dto.request.GameStartRequest;
65
import io.f1.backend.domain.game.dto.response.GameStartResponse;
76
import io.f1.backend.domain.game.event.RoomUpdatedEvent;
8-
import io.f1.backend.domain.game.model.GameSetting;
97
import io.f1.backend.domain.game.model.Player;
108
import io.f1.backend.domain.game.model.Room;
119
import io.f1.backend.domain.game.model.RoomState;
@@ -17,14 +15,14 @@
1715
import io.f1.backend.global.exception.CustomException;
1816
import io.f1.backend.global.exception.errorcode.RoomErrorCode;
1917

20-
import java.util.Objects;
2118
import lombok.RequiredArgsConstructor;
2219

2320
import org.springframework.context.ApplicationEventPublisher;
2421
import org.springframework.stereotype.Service;
2522

2623
import java.util.List;
2724
import java.util.Map;
25+
import java.util.Objects;
2826

2927
@Service
3028
@RequiredArgsConstructor

backend/src/main/java/io/f1/backend/domain/game/websocket/GameSocketController.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package io.f1.backend.domain.game.websocket;
22

3+
import static io.f1.backend.domain.game.websocket.WebSocketUtils.getSessionId;
4+
import static io.f1.backend.domain.game.websocket.WebSocketUtils.getSessionUser;
5+
36
import io.f1.backend.domain.game.app.GameService;
47
import io.f1.backend.domain.game.app.RoomService;
58
import io.f1.backend.domain.game.dto.ChatMessage;
@@ -19,9 +22,6 @@
1922
import org.springframework.messaging.handler.annotation.MessageMapping;
2023
import org.springframework.stereotype.Controller;
2124

22-
import static io.f1.backend.domain.game.websocket.WebSocketUtils.getSessionId;
23-
import static io.f1.backend.domain.game.websocket.WebSocketUtils.getSessionUser;
24-
2525
@Controller
2626
@RequiredArgsConstructor
2727
public class GameSocketController {
@@ -71,8 +71,7 @@ public void exitRoom(@DestinationVariable Long roomId, Message<?> message) {
7171
}
7272

7373
@MessageMapping("/room/start/{roomId}")
74-
public void gameStart(
75-
@DestinationVariable Long roomId, Message<?> message) {
74+
public void gameStart(@DestinationVariable Long roomId, Message<?> message) {
7675

7776
UserPrincipal principal = getSessionUser(message);
7877

backend/src/main/java/io/f1/backend/domain/game/websocket/WebSocketUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.f1.backend.domain.game.websocket;
22

33
import io.f1.backend.domain.user.dto.UserPrincipal;
4+
45
import org.springframework.messaging.Message;
56
import org.springframework.messaging.simp.stomp.StompHeaderAccessor;
67
import org.springframework.security.core.Authentication;
@@ -17,4 +18,4 @@ public static UserPrincipal getSessionUser(Message<?> message) {
1718
Authentication auth = (Authentication) accessor.getUser();
1819
return (UserPrincipal) auth.getPrincipal();
1920
}
20-
}
21+
}

0 commit comments

Comments
 (0)