From e740a505e93c48cefe2b11bf6444699f57b6e951 Mon Sep 17 00:00:00 2001 From: jbock Date: Thu, 20 Jun 2024 11:59:42 +0200 Subject: [PATCH] toString improvement --- compiler/src/main/java/net/jbock/writing/ImplClass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/main/java/net/jbock/writing/ImplClass.java b/compiler/src/main/java/net/jbock/writing/ImplClass.java index 51c08473..ea92d321 100644 --- a/compiler/src/main/java/net/jbock/writing/ImplClass.java +++ b/compiler/src/main/java/net/jbock/writing/ImplClass.java @@ -109,7 +109,7 @@ private MethodSpec generateToString() { spec.addAnnotation(Override.class); ParameterSpec joiner = ParameterSpec.builder(StringJoiner.class, "joiner").build(); spec.addStatement("$T $N = new $T($S, $S, $S)", StringJoiner.class, joiner, StringJoiner.class, - ", ", "{", "}"); + ", ", "{ ", " }"); for (int i = 0; i < namedOptions().size(); i++) { Mapping