| Summary: | [server] The enum constant ZZZ needs a corresponding case label in this enum switch | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Anthony Hunter <ahunter.eclipse> |
| Component: | Server | Assignee: | Anthony Hunter <ahunter.eclipse> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 5.0 | ||
| Target Milestone: | 5.0 M1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
There are many warnings: The enum constant ZZZ needs a corresponding case label in this enum switch We are using pattern: switch (Method) { case GET: return true; case DELETE: return true; } return false; <----------------- Replace with: switch (Method) { case GET: return true; case DELETE: return true; default: <----------------- return false; <----------------- } And the warnings are eliminated.