codeConverter 수정

main
이범준 12 months ago
parent 704723ffdc
commit af3700c8d5

@ -34,7 +34,7 @@ public class CodeConverter {
List<CommonCode> commonCodeList = commonCodes.get(codeGroupName);
for(int i = 0; i < commonCodeList.size(); i++) {
for(int i = 0, size = commonCodeList != null ? commonCodeList.size() : 0; i < size; i++) {
if(value.replaceAll(Matcher.quoteReplacement(" "), "").equals(commonCodeList.get(i).getValue().replaceAll(Matcher.quoteReplacement(" "), ""))) {
result = commonCodeList.get(i).getCode();
}
@ -51,7 +51,7 @@ public class CodeConverter {
List<CommonCode> commonCodeList = commonCodes.get(codeGroupName);
for(int i = 0; i < commonCodeList.size(); i++) {
for(int i = 0, size = commonCodeList != null ? commonCodeList.size() : 0; i < size; i++) {
if(code.equals(commonCodeList.get(i).getCode())) {
result = commonCodeList.get(i).getValue();
}

Loading…
Cancel
Save