Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SONARJAVA-4826 S6880 Use switch instead of if else for pattern matchi…
…ng (#4726) * SONARJAVA-4826 S6880 Use switch instead of if else for pattern matching * Prototype implementation of quickfix * Refactor + Improve quickfix indents * Test first 3 quickfixes * More rigorous implementation without quickfix * Make test cases follow the spec more closely * Implement quickfix * Add test for guards + Test first quickfix * Don't generate guards for constant cases + add tests * Fix bugs with constant cases + Refactor * Add test * Inline constant argument * Handle non-block branches + add tests * Add test * Add tests * Fix autoscan * Apply requested changes * Lift returns when possible * Add test case * Reformatting
- Loading branch information