YooYoungmo / AEP

1 stars 1 forks source link

activeProfile의 유효성 체크 및 get하는 코드 리펙토링 #47

Closed LangVE closed 7 years ago

LangVE commented 7 years ago

완료 목표

/* 현재 */
JSONArray validStageJSONArray = profileJSONObject.getJSONArray("validStage");

if (!validStageJSONArray.contains(activeProfile)) {
    throw new InvalidActiveProfileException();
}

String activeProfile = System.getProperty("app.env.profile.active");
/* 리펙토링 후 */
if (validActiveProfile()) {

    throw new InvalidActiveProfileException();

}



String activeProfile = getActiveProfile();

완료 기한

2017.03.22 (수)