palantir-java-format icon indicating copy to clipboard operation
palantir-java-format copied to clipboard

spotlessApply generates incorrect indentation level for switch expression in lambda

Open tengfliao opened this issue 3 years ago • 0 comments

What happened?

                .orElseGet(() -> switch (value) {
                case ONE -> // one-liner here
                case TWO -> // multi-line, single builder
                });

What did you want to happen?

                .orElseGet(() -> switch (value) {
                    case ONE -> // one-liner here
                    case TWO -> // multi-line, single builder
                });

tengfliao avatar Jan 25 '21 22:01 tengfliao