From 74333c3af2b71c90098f9e746b839b15d4d14038 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Mon, 28 Oct 2019 17:09:08 -0700 Subject: [PATCH] SOLR-13783: Add space after comma in NamedList.toString() (#979) --- solr/CHANGES.txt | 4 ++++ .../java/org/apache/solr/common/util/NamedList.java | 2 +- .../org/apache/solr/common/util/NamedListTest.java | 10 ++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index e46265512fe..5421065539e 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -31,6 +31,10 @@ Jetty 9.4.19.v20190610 Upgrade Notes ---------------------- +* SOLR-13783: In situations where a NamedList must be output as plain text, commas between key-value pairs will now be + followed by a space (e.g. {shape=square, color=yellow} rather than {shape=square,color=yellow}) for consistency with + other java.util.Map implementations based on AbstractMap (Chris Hennick). + * LUCENE-8738: Move to Java 11 as minimum Java version. (Adrien Grand, Uwe Schindler) diff --git a/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java b/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java index f21705aef9e..3113ef95337 100644 --- a/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java +++ b/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java @@ -401,7 +401,7 @@ public class NamedList implements Cloneable, Serializable, Iterable