ConvertSwitchToIfIntention: preserve comments from expression when only default branch is present

This commit is contained in:
Tagir Valeev
2019-01-10 17:11:06 +07:00
parent 0cf276793e
commit c68df6edc2
3 changed files with 7 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
// "Unwrap 'switch'" "true"
class X {
String test(char c) {
s<caret>witch (c) {
s<caret>witch (c/*comment*/) {
default:
if(c == 'a') {
System.out.println("foo");