From 645cb098f56d715f7dff2e4e1add8e559b953d57 Mon Sep 17 00:00:00 2001 From: "Chris M. Hostetter" Date: Sun, 25 Jan 2009 01:55:03 +0000 Subject: [PATCH] SOLR-962: Note about null handling in ModifiableSolrParams.add javadoc git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@737467 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 3 ++- .../org/apache/solr/common/params/ModifiableSolrParams.java | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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);