You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ds...@apache.org on 2016/04/14 07:37:44 UTC

[3/7] lucene-solr:solr-5750: StrUtils.join() should take a Collection

StrUtils.join() should take a Collection


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

Branch: refs/heads/solr-5750
Commit: acb88a118175183fabf6532210ae6e5c496d6d74
Parents: 91e72a3
Author: David Smiley <ds...@apache.org>
Authored: Thu Apr 14 01:26:32 2016 -0400
Committer: David Smiley <ds...@apache.org>
Committed: Thu Apr 14 01:26:32 2016 -0400

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


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/acb88a11/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java b/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java
index efe54cf..5fa0fae 100644
--- a/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java
+++ b/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java
@@ -16,12 +16,13 @@
  */
 package org.apache.solr.common.util;
 
+import java.io.IOException;
 import java.text.MessageFormat;
-import java.util.List;
 import java.util.ArrayList;
+import java.util.Collection;
 import java.util.Collections;
+import java.util.List;
 import java.util.Locale;
-import java.io.IOException;
 
 import org.apache.solr.common.SolrException;
 
@@ -147,7 +148,7 @@ public class StrUtils {
    * Creates a backslash escaped string, joining all the items. 
    * @see #escapeTextWithSeparator
    */
-  public static String join(List<?> items, char separator) {
+  public static String join(Collection<?> items, char separator) {
     StringBuilder sb = new StringBuilder(items.size() << 3);
     boolean first=true;
     for (Object o : items) {