You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2017/03/03 08:39:58 UTC

lucene-solr:branch_6_4: Fix (generic) return type

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6_4 34a975ca3 -> b8ea2d045


Fix (generic) return type

w/o this change class won't compile using jdk9-ea157


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/b8ea2d04
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/b8ea2d04
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/b8ea2d04

Branch: refs/heads/branch_6_4
Commit: b8ea2d04556f70a8e956d63f6a6044c801beb49b
Parents: 34a975c
Author: Chris Hostetter <ho...@apache.org>
Authored: Sun Feb 19 18:09:35 2017 -0700
Committer: Uwe Schindler <us...@apache.org>
Committed: Fri Mar 3 09:38:25 2017 +0100

----------------------------------------------------------------------
 solr/solrj/src/java/org/apache/solr/common/util/NamedList.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b8ea2d04/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java
----------------------------------------------------------------------
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 979c67a..0313d3a 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
@@ -393,8 +393,8 @@ public class NamedList<T> implements Cloneable, Serializable, Iterable<Map.Entry
     return sb.toString();
   }
 
-  public NamedList getImmutableCopy() {
-    NamedList copy = clone();
+  public NamedList<T> getImmutableCopy() {
+    NamedList<T> copy = clone();
     return new NamedList<>( Collections.unmodifiableList(copy.nvPairs));
   }