From 1f5ba00f76b3ddbaf3bec18301399e5390e00a6e Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Fri, 30 Aug 2024 12:48:29 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20profile=20=EB=B3=84=20scheduler=20?= =?UTF-8?q?=EC=8B=A4=ED=96=89=EB=90=98=EB=8F=84=EB=A1=9D=20=EB=B0=98?= =?UTF-8?q?=EC=98=81=20=20=20=20=20=20=20(=EC=B2=9C=EC=95=88=20or=20?= =?UTF-8?q?=EC=B6=98=EC=B2=9C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/kr/xit/batch/ens/task/cmm/TaskCmmUtils.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mens-batch/src/main/java/kr/xit/batch/ens/task/cmm/TaskCmmUtils.java b/mens-batch/src/main/java/kr/xit/batch/ens/task/cmm/TaskCmmUtils.java index 83a6e43..afd762e 100644 --- a/mens-batch/src/main/java/kr/xit/batch/ens/task/cmm/TaskCmmUtils.java +++ b/mens-batch/src/main/java/kr/xit/batch/ens/task/cmm/TaskCmmUtils.java @@ -3,6 +3,8 @@ package kr.xit.batch.ens.task.cmm; import static egovframework.com.cmm.util.EgovStringUtil.*; import java.util.Arrays; +import java.util.List; +import java.util.stream.Collectors; import org.slf4j.MDC; @@ -83,15 +85,15 @@ public class TaskCmmUtils { ); } - public static ApiConstants.SignguCode[] getSignguCodeList() { + public static List getSignguCodeList() { if(ApiConstants.IS_CCN){ - return (ApiConstants.SignguCode[])Arrays.stream(ApiConstants.SignguCode.values()) + return Arrays.stream(ApiConstants.SignguCode.values()) .filter(d -> d.getCode().equals(ApiConstants.SignguCode.CHUNCHEON.getCode())) - .toArray(); + .collect(Collectors.toList()); } - return (ApiConstants.SignguCode[])Arrays.stream(ApiConstants.SignguCode.values()) + return Arrays.stream(ApiConstants.SignguCode.values()) .filter(d -> !d.getCode().equals(ApiConstants.SignguCode.CHUNCHEON.getCode())) - .toArray(); + .collect(Collectors.toList()); } }