Skip to content

Apache Lucene open-source search software

SOLR-9452: Altered javadocs to reflect the new behavior

Noble Paul23825b248039
diff --git a/solr/solrj/src/java/org/apache/solr/common/util/JsonRecordReader.java b/solr/solrj/src/java/org/apache/solr/common/util/JsonRecordReader.java
index 782c25dc342..b9766fbb31d 100644
--- a/solr/solrj/src/java/org/apache/solr/common/util/JsonRecordReader.java
+++ b/solr/solrj/src/java/org/apache/solr/common/util/JsonRecordReader.java
@@ -533,6 +533,8 @@ public class JsonRecordReader {
* @param record The record map. The key is the field name as provided in
* the addField() methods. The value can be a single String (for single
* valued fields) or a List<String> (for multiValued).
+ * This map is mutable. DO NOT alter the map or store it for later use.
+ * If it must be stored, make a deep copy before doing so
* @param path The forEach path for which this record is being emitted
* If there is any change all parsing will be aborted and the Exception
* is propagated up