From f04a4f96dba89a27f91ba1b5c1cfb7c9c2123389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=8B=9C=EC=98=A8=ED=8C=8C=ED=8C=8C?= Date: Sun, 6 Mar 2022 22:04:21 +0900 Subject: [PATCH] =?UTF-8?q?deprecate=20=EB=A9=94=EC=86=8C=EB=93=9C=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/ci/api/service/NiceCiService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/cokr/xit/ci/api/service/NiceCiService.java b/src/main/java/cokr/xit/ci/api/service/NiceCiService.java index 2cad255..cd0b788 100644 --- a/src/main/java/cokr/xit/ci/api/service/NiceCiService.java +++ b/src/main/java/cokr/xit/ci/api/service/NiceCiService.java @@ -6,7 +6,6 @@ import cokr.xit.ci.api.service.suport.Interop; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; -import org.springframework.util.StringUtils; import java.io.IOException; import java.security.MessageDigest; @@ -14,6 +13,7 @@ import java.security.NoSuchAlgorithmException; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Optional; import java.util.stream.Collectors; @Slf4j @@ -45,15 +45,15 @@ public class NiceCiService { /* ======================== * validate ======================== */ - if(StringUtils.isEmpty(siteCode)){ + if(!Optional.ofNullable(siteCode).isPresent()){ responseVO = ResponseVO.builder().errCode(ErrCd.ERR401).errMsg("사이트코드(은)는 필수조건 입니다.").build(); throw new RuntimeException(responseVO.getErrMsg()); } - if(StringUtils.isEmpty(sitePw)){ + if(!Optional.ofNullable(sitePw).isPresent()){ responseVO = ResponseVO.builder().errCode(ErrCd.ERR401).errMsg("사이트 패스워드(은)는 필수조건 입니다.").build(); throw new RuntimeException(responseVO.getErrMsg()); } - if(StringUtils.isEmpty(jid)){ + if(!Optional.ofNullable(jid).isPresent()){ responseVO = ResponseVO.builder().errCode(ErrCd.ERR401).errMsg("서비스 구분값(주민번호:JID)(은)는 필수조건 입니다.").build(); throw new RuntimeException(responseVO.getErrMsg()); }