Skip to content

Commit

Permalink
Add WrappingAndBracesStyle#applyDefaults()
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Sep 29, 2023
1 parent 24b2704 commit c1a4871
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import lombok.Value;
import lombok.With;
import org.openrewrite.kotlin.KotlinStyle;
import org.openrewrite.style.Style;
import org.openrewrite.style.StyleHelper;

@Value
@With
Expand Down Expand Up @@ -134,4 +136,9 @@ public static class ExpressionBodyFunctions {
public static class ElvisExpressions {
Boolean useContinuationIndent;
}

@Override
public Style applyDefaults() {
return StyleHelper.merge(IntelliJ.wrappingAndBraces(), this);
}
}

0 comments on commit c1a4871

Please sign in to comment.