Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-962: Note about null handling in ModifiableSolrParams.add javadoc

Chris M. Hostetter645cb098f56d
diff --git a/CHANGES.txt b/CHANGES.txt
index 0eb2590f5a9..c3895e3612d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -265,7 +265,8 @@ Documentation
----------------------
1. SOLR-789: The javadoc of RandomSortField is not readable (Nicolas Lalevée via koji)
-
+ 2. SOLR-962: Note about null handling in ModifiableSolrParams.add javadoc
+ (Kay Kay via hossman)
================== Release 1.3.0 20080915 ==================
diff --git a/src/common/org/apache/solr/common/params/ModifiableSolrParams.java b/src/common/org/apache/solr/common/params/ModifiableSolrParams.java
index ce2797de9a8..ff89b19c85f 100644
--- a/src/common/org/apache/solr/common/params/ModifiableSolrParams.java
+++ b/src/common/org/apache/solr/common/params/ModifiableSolrParams.java
@@ -84,6 +84,11 @@ public class ModifiableSolrParams extends SolrParams
/**
* Add the given values to any existing name
+ * @param name Key
+ * @param val Array of value(s) added to the name. NOTE: If val is null
+ * or a member of val is null, then a corresponding null reference
+ * will be included when a get method is called on the key later.
+ * @return this
*/
public ModifiableSolrParams add( String name, String ... val ) {
String[] old = vals.put(name, val);