| Summary: | [12] Add Missing Case statements add case statements with ":" | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Sarika Sinha <sarika.sinha> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | noopur_gupta |
| Version: | 4.12 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 545120 | ||
*** This bug has been marked as a duplicate of bug 545259 *** |
With Build id: I20190331-1800, switch (day) { case MONDAY ->System.out.println("Start of the Week"); case SATURDAY, SUNDAY -> System.out.println("End of the Week"); }; And add Missing Case statements results to : switch (day) { case MONDAY ->System.out.println("Start of the Week"); case SATURDAY, SUNDAY -> System.out.println("End of the Week"); case FRIDAY: break; case THURSDAY: break; case TUESDAY: break; case WEDNESDAY: break; default: break; }; Add Default case works well.