Skip to content

Commit

Permalink
Make CallableDeclarationAnnos.toString() multiline (typetools#6927)
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored Dec 17, 2024
1 parent 3a302de commit 11cd403
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1892,15 +1892,18 @@ public void transferAnnotations() {

@Override
public String toString() {
return "CallableDeclarationAnnos [declaration="
+ declaration
+ ", parameterTypes="
+ parameterTypes
+ ", receiverType="
+ receiverType
+ ", returnType="
+ returnType
+ "]";
StringJoiner sj =
new StringJoiner(
"," + System.lineSeparator() + " ",
"CallableDeclarationAnnos{",
System.lineSeparator() + "}");
sj.add("returnType = " + returnType);
sj.add("receiverType = " + receiverType);
sj.add("parameterTypes = " + parameterTypes);
sj.add("paramsDeclAnnos = " + paramsDeclAnnos);
sj.add("declarationAnnotations = " + declarationAnnotations);
sj.add("preconditions = " + preconditions);
return sj.toString();
}
}

Expand Down

0 comments on commit 11cd403

Please sign in to comment.