IT 인터넷/소나큐브
[소나큐브] Source files should not have any duplicated blocks.
바다소년3904
2022. 10. 18. 15:17
728x90
1. Source files should not have any duplicated blocks.
2. This block of commented-out lines of code should be removed.
[오류내용]
// CASE 1
/* resultMap.put("RESULT_CD", output.get("result_cd")); */
// CASE 2
/*
for(int i=0; i<10; i++){
...~~~~~~
...~~~~~~~~~
}
*/
// CASE 3
/*
resultMap.put(RESULT_MSG, output.get("result_msg"));
// 정상적으로 API가 성공한 경우
if(output.get("result_cd").equals(RESULT_CODE_200)) {
resultMap.put("STATUS", output.get("status"));
}
*/
[해결방법]
프로그래밍 주석은 삭제처리하면 된다.
이유는 납득이 안간다. ㅋㅋ
쓰레기 코드가 있어서 좋을건 없지만 지우면 된다.
728x90
반응형