Skip to content

Commit

Permalink
[CHORE] null 조건문 Objects.isNull()로 수정
Browse files Browse the repository at this point in the history
리뷰 반영
  • Loading branch information
unanchoi committed Mar 11, 2024
1 parent fd6c775 commit 26a03a3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import com.smeem.api.member.controller.dto.request.TrainingTimeRequest;
import lombok.Builder;

import java.util.Objects;

import static lombok.AccessLevel.PRIVATE;

@Builder(access = PRIVATE)
Expand All @@ -13,7 +15,7 @@ public record TrainingTimeServiceRequest(
Integer minute
) {
public static TrainingTimeServiceRequest of(TrainingTimeRequest request) {
if (request == null) {
if (Objects.isNull(request)) {
return null;
}
return TrainingTimeServiceRequest.builder()
Expand Down

0 comments on commit 26a03a3

Please sign in to comment.