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()); } }