Skip to content

Commit

Permalink
Fix indentation of annotation parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Oct 15, 2023
1 parent b2cd021 commit 7907471
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ public J preVisit(@Nullable J tree, P p) {
tree instanceof J.ClassDeclaration ||
tree instanceof K.ClassDeclaration ||
(tree instanceof J.FieldAccess || tree instanceof J.MethodInvocation)
&& !wrappingStyle.getChainedFunctionCalls().getUseContinuationIndent()
&& !wrappingStyle.getChainedFunctionCalls().getUseContinuationIndent() ||
tree instanceof J.Annotation
) {
getCursor().putMessage("indentType", IndentType.INDENT);
} else if (tree instanceof K.ExpressionStatement ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ void annotationArguments() {
"""
class Test {
@Suppress(
"unchecked",
"ALL"
"unchecked",
"ALL"
)
val id: String = "1"
}
Expand Down Expand Up @@ -1074,7 +1074,7 @@ annotation class Anno
class Test {
@Suppress(
"unchecked"
"unchecked"
)
@Anno
var id: Int = 0
Expand Down Expand Up @@ -1519,8 +1519,8 @@ void twoThrows() {
class Test {
@Throws(
IOException::class,
Exception::class)
IOException::class,
Exception::class)
fun method() {
}
Expand Down

0 comments on commit 7907471

Please sign in to comment.