change Collection<Object> to Collection<?> in solrj object binder

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@679438 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2008-07-24 15:53:57 +00:00
parent 48f098b89a
commit c0f037cd1f
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ public abstract class SolrServer implements Serializable
return req.process(this); return req.process(this);
} }
public UpdateResponse addBeans(Collection<Object> beans, boolean overwrite ) throws SolrServerException, IOException { public UpdateResponse addBeans(Collection<?> beans, boolean overwrite ) throws SolrServerException, IOException {
DocumentObjectBinder binder = this.getBinder(); DocumentObjectBinder binder = this.getBinder();
ArrayList<SolrInputDocument> docs = new ArrayList<SolrInputDocument>(beans.size()); ArrayList<SolrInputDocument> docs = new ArrayList<SolrInputDocument>(beans.size());
for (Object bean : beans) { for (Object bean : beans) {
@ -81,7 +81,7 @@ public abstract class SolrServer implements Serializable
return add(docs, true); return add(docs, true);
} }
public UpdateResponse addBeans(Collection<Object> beans ) throws SolrServerException, IOException { public UpdateResponse addBeans(Collection<?> beans ) throws SolrServerException, IOException {
return addBeans(beans,true); return addBeans(beans,true);
} }