diff --git a/src/main/java/com/fc/toy_project2/global/DTO/ResponseDTO.java b/src/main/java/com/fc/toy_project2/global/DTO/ResponseDTO.java index 022ac72..4212997 100644 --- a/src/main/java/com/fc/toy_project2/global/DTO/ResponseDTO.java +++ b/src/main/java/com/fc/toy_project2/global/DTO/ResponseDTO.java @@ -27,7 +27,7 @@ public class ResponseDTO{ * @return 생성된 ResponseDTO 객체 */ public static ResponseDTO res (HttpStatus httpStatus, @Nullable T data, String message) { - return (ResponseDTO) ResponseDTO.builder() + return ResponseDTO.builder() .code(httpStatus.value()) .message(message) .data(data) @@ -43,7 +43,7 @@ public static ResponseDTO res (HttpStatus httpStatus, @Nullable T data, S * @return 생성된 ResponseDTO 객체 */ public static ResponseDTO res (HttpStatus httpStatus, String message) { - return (ResponseDTO) ResponseDTO.builder() + return ResponseDTO.builder() .code(httpStatus.value()) .message(message) .build();