Skip to content

Commit

Permalink
[style] 사용하지 않는 APIUtils @deprecated 애노테이션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
june-777 committed Aug 14, 2024
1 parent 1fca7e6 commit 8540ad5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/camp/woowak/lab/web/api/utils/APIUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
* of Method는 status와 data를 이용해 APIResponse객체를 만들 수 있습니다.
*
*/
@Deprecated(since = "APIResponseAdvice 에서 APIResponse 를 반환하는 구조여서, 현재는 ResponseEntity 를 사용하지 않습니다.")
public final class APIUtils {
private APIUtils() {
}

@Deprecated
public static <T> ResponseEntity<APIResponse<T>> of(HttpStatus status, T data) {
return new ResponseEntity<>(new APIResponse<>(status, data), status);
}
Expand Down

0 comments on commit 8540ad5

Please sign in to comment.