mirror of https://github.com/apache/lucene.git
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:
parent
48f098b89a
commit
c0f037cd1f
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue