래퍼 타입을 기본 타입으로 만들 수 있음, 코드 스타일 이슈, 필드는 로컬 변수일 수 있습니다
This commit is contained in:
@@ -7,7 +7,7 @@ public class FrontPublicAccess {
|
||||
|
||||
private static final FrontPublicAccess INSTANCE = new FrontPublicAccess();
|
||||
|
||||
private List<String> publicAccessURIs = new ArrayList<>();
|
||||
private final List<String> publicAccessURIs = new ArrayList<>();
|
||||
|
||||
private FrontPublicAccess() {
|
||||
}
|
||||
|
||||
@@ -69,30 +69,24 @@ public class DailyStatusUIController {
|
||||
@GetMapping(path = "/{step}/{searchMonth}")
|
||||
public String detail(Model model, @PathVariable("step") String step, @PathVariable("searchMonth") String searchMonth) {
|
||||
switch (DailySort.valueOf(step.toUpperCase())) {
|
||||
case INCOME -> {
|
||||
case INCOME ->
|
||||
processStep(model, DailySort.INCOME,
|
||||
dailyIncomePortIn.monthList(new DailyIncomeUIReqVO(searchMonth, "")));
|
||||
}
|
||||
case WORK -> {
|
||||
case WORK ->
|
||||
processStep(model, DailySort.WORK,
|
||||
dailyWorkPortIn.monthList(new DailyWorkUIReqVO(searchMonth, "")));
|
||||
}
|
||||
case EXPENSE -> {
|
||||
case EXPENSE ->
|
||||
processStep(model, DailySort.EXPENSE,
|
||||
dailyExpensePortIn.monthList(new DailyExpenseUIReqVO(searchMonth, "")));
|
||||
}
|
||||
case POWER -> {
|
||||
case POWER ->
|
||||
processStep(model, DailySort.POWER,
|
||||
dailyPowerPortIn.monthList(new DailyPowerUIReqVO(searchMonth, "")));
|
||||
}
|
||||
case FORESTRY -> {
|
||||
case FORESTRY ->
|
||||
processStep(model, DailySort.FORESTRY,
|
||||
dailyForestryPortIn.monthList(new DailyForestryUIReqVO(searchMonth, "")));
|
||||
}
|
||||
case FARMING -> {
|
||||
case FARMING ->
|
||||
processStep(model, DailySort.FARMING,
|
||||
dailyFarmingPortIn.monthList(new DailyFarmingUIReqVO(searchMonth, "")));
|
||||
}
|
||||
default -> throw new NoMatchingURIException("잘못된 접근");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user