[Java] Refactor: switch statement can be replaced with enhanced 'switch'
·
Development/Java
개선된 switch문을 사용하라는 경고이다. AS-ISswitch (unitCode) { case "SS": // 초 return count; case "MI": // 분 return count * 60; case "HH": // 시간 return count * 60 * 60; case "DD": // 일 return count * 24 * 60 * 60; case "WK": // 주 return count * 7 * 24 * 60 * 60; case "MM": // 월 (30일 기준) return count * 30 * 24 * 60 * 60; case "YY": // 년 (365일 기준) ..