diff --git a/src/main/java/com/thirdparty/ticketing/domain/waitingroom/WaitingAspect.java b/src/main/java/com/thirdparty/ticketing/domain/waitingroom/WaitingAspect.java index 9ed180d5..0708c607 100644 --- a/src/main/java/com/thirdparty/ticketing/domain/waitingroom/WaitingAspect.java +++ b/src/main/java/com/thirdparty/ticketing/domain/waitingroom/WaitingAspect.java @@ -1,12 +1,13 @@ package com.thirdparty.ticketing.domain.waitingroom; -import lombok.RequiredArgsConstructor; import org.aspectj.lang.ProceedingJoinPoint; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; +import lombok.RequiredArgsConstructor; + @RequiredArgsConstructor public class WaitingAspect { @@ -14,9 +15,9 @@ public class WaitingAspect { private Object waitingRequest(ProceedingJoinPoint joinPoint) throws Throwable { Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); - String email = (String)authentication.getPrincipal(); + String email = (String) authentication.getPrincipal(); UserInfo userInfo = new UserInfo(email); - if(waitingManager.isReadyToHandle(userInfo)){ + if (waitingManager.isReadyToHandle(userInfo)) { return joinPoint.proceed(); } else { long waitingNumber = waitingManager.enterWaitingRoom(userInfo); diff --git a/src/main/java/com/thirdparty/ticketing/domain/waitingroom/WaitingLine.java b/src/main/java/com/thirdparty/ticketing/domain/waitingroom/WaitingLine.java index 1374de82..dcf007f5 100644 --- a/src/main/java/com/thirdparty/ticketing/domain/waitingroom/WaitingLine.java +++ b/src/main/java/com/thirdparty/ticketing/domain/waitingroom/WaitingLine.java @@ -4,6 +4,7 @@ public interface WaitingLine { /** * 사용자를 대기열에 넣는다. + * * @param userInfo 사용자의 정보 * @param waitingCounter 사용자의 고유한 카운트 값 */ diff --git a/src/main/java/com/thirdparty/ticketing/domain/waitingroom/WaitingRoom.java b/src/main/java/com/thirdparty/ticketing/domain/waitingroom/WaitingRoom.java index d650f14c..6580c680 100644 --- a/src/main/java/com/thirdparty/ticketing/domain/waitingroom/WaitingRoom.java +++ b/src/main/java/com/thirdparty/ticketing/domain/waitingroom/WaitingRoom.java @@ -10,6 +10,7 @@ public abstract class WaitingRoom { /** * 사용자를 대기열에 넣고, 대기공간에 보관한다. + * * @param userInfo 사용자의 정보 * @return 사용자의 남은 순번을 반환한다. */