mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
90830: Checkstyle fixes
This commit is contained in:
@@ -168,10 +168,11 @@ public class SolrServiceImpl implements SearchService, IndexingService {
|
||||
indexableObjectService.writeDocument(context, indexableObject, solrInputDocument);
|
||||
}
|
||||
|
||||
protected void update(Context context, IndexFactory indexableObjectService,
|
||||
IndexableObject indexableObject, boolean preDB) throws IOException, SQLException, SolrServerException {
|
||||
protected void update(Context context, IndexFactory indexableObjectService, IndexableObject indexableObject,
|
||||
boolean preDB) throws IOException, SQLException, SolrServerException {
|
||||
if (preDB) {
|
||||
final SolrInputDocument solrInputDocument = indexableObjectService.buildNewDocument(context, indexableObject);
|
||||
final SolrInputDocument solrInputDocument =
|
||||
indexableObjectService.buildNewDocument(context, indexableObject);
|
||||
indexableObjectService.writeDocument(context, indexableObject, solrInputDocument);
|
||||
} else {
|
||||
update(context, indexableObjectService, indexableObject);
|
||||
|
@@ -172,7 +172,8 @@ public class ItemIndexFactoryImpl extends DSpaceObjectIndexFactoryImpl<Indexable
|
||||
}
|
||||
|
||||
@Override
|
||||
public SolrInputDocument buildNewDocument(Context context, IndexableItem indexableItem) throws SQLException, IOException {
|
||||
public SolrInputDocument buildNewDocument(Context context, IndexableItem indexableItem)
|
||||
throws SQLException, IOException {
|
||||
SolrInputDocument doc = buildDocument(context, indexableItem);
|
||||
doc.addField(STATUS_FIELD, STATUS_FIELD_PREDB);
|
||||
return doc;
|
||||
|
Reference in New Issue
Block a user