@@ -202,24 +202,24 @@ private String abbreviate(Map<Object, String> seen, Object stringify) {
202
202
if (stringify .getClass ().isArray ()) {
203
203
value .append ("[" );
204
204
value .append (
205
- Stream .of ((Object []) stringify )
206
- .map (item -> abbreviate (seen , item ))
207
- .collect (Collectors .joining (", " )));
205
+ Stream .of ((Object []) stringify )
206
+ .map (item -> abbreviate (seen , item ))
207
+ .collect (Collectors .joining (", " )));
208
208
value .append ("]" );
209
209
} else if (stringify instanceof Collection ) {
210
210
value .append ("[" );
211
211
value .append (
212
- ((Collection <?>) stringify ).stream ()
213
- .map (item -> abbreviate (seen , item ))
214
- .collect (Collectors .joining (", " )));
212
+ ((Collection <?>) stringify ).stream ()
213
+ .map (item -> abbreviate (seen , item ))
214
+ .collect (Collectors .joining (", " )));
215
215
value .append ("]" );
216
216
} else if (stringify instanceof Map ) {
217
217
value .append ("{" );
218
218
value .append (
219
- ((Map <?, ?>) stringify ).entrySet ().stream ()
220
- .sorted (Comparator .comparing (entry -> String .valueOf (entry .getKey ())))
221
- .map (entry -> String .valueOf ( entry .getKey ()) + ": " + abbreviate (seen , entry .getValue ()))
222
- .collect (Collectors .joining (", " )));
219
+ ((Map <?, ?>) stringify ).entrySet ().stream ()
220
+ .sorted (Comparator .comparing (entry -> String .valueOf (entry .getKey ())))
221
+ .map (entry -> String .format ( "%s: %s" , entry .getKey (), abbreviate (seen , entry .getValue () )))
222
+ .collect (Collectors .joining (", " )));
223
223
value .append ("}" );
224
224
} else {
225
225
String s = String .valueOf (stringify );
0 commit comments