diff --git a/main-server/src/main/java/com/sickgyun/server/profile/presentation/dto/ProfileResponse.java b/main-server/src/main/java/com/sickgyun/server/profile/presentation/dto/ProfileResponse.java index c61e438..944cc82 100644 --- a/main-server/src/main/java/com/sickgyun/server/profile/presentation/dto/ProfileResponse.java +++ b/main-server/src/main/java/com/sickgyun/server/profile/presentation/dto/ProfileResponse.java @@ -2,6 +2,8 @@ import java.time.LocalDateTime; +import org.jsoup.internal.StringUtil; + import com.sickgyun.server.profile.domain.Profile; import com.sickgyun.server.profile.domain.value.Major; @@ -25,7 +27,7 @@ public static ProfileResponse from(Profile profile) { profile.getWriter().getName(), profile.getInformation().getImageUrl(), LocalDateTime.now().getYear() - profile.getWriter().getCardinal() >= 2023, - !(profile.getCompany().isBlank() || profile.getCompany().isEmpty()), + !StringUtil.isBlank(profile.getCompany()), profile.getInformation().getMajor(), profile.getOnlineProfile().getGithubId(), profile.getOnlineProfile().getResumeUrl(), diff --git a/main-server/src/main/java/com/sickgyun/server/profile/presentation/dto/SimpleProfileResponse.java b/main-server/src/main/java/com/sickgyun/server/profile/presentation/dto/SimpleProfileResponse.java index d021807..107e692 100644 --- a/main-server/src/main/java/com/sickgyun/server/profile/presentation/dto/SimpleProfileResponse.java +++ b/main-server/src/main/java/com/sickgyun/server/profile/presentation/dto/SimpleProfileResponse.java @@ -1,5 +1,7 @@ package com.sickgyun.server.profile.presentation.dto; +import org.jsoup.internal.StringUtil; + import com.sickgyun.server.profile.domain.Profile; import com.sickgyun.server.profile.domain.value.Major; @@ -29,7 +31,7 @@ public static SimpleProfileResponse from(Profile profile) { introduction, profile.getWriter().getCardinal(), profile.getWriter().getId(), - !(profile.getCompany().isBlank() || profile.getCompany().isEmpty()) + !StringUtil.isBlank(profile.getCompany()) ); } }