eclipse-jdt / eclipse.jdt.ui

Eclipse Public License 2.0
32 stars 79 forks source link

Fix inlining method returning constant into switch expression #1447

Closed jjohnstn closed 1 month ago

jjohnstn commented 1 month ago

What it does

Fixes case where a method returning a single constant is inlined into the case expression of a switch expression. We don't want to add a yield statement in such a case, just the constant.

How to test

See issue or new test.

Author checklist