mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
Remove all traces of metadataStorageInfo.
The field is never set in SolrLogger, so getMetadataStorageInfo always returns null. Attempts to dereference the Map supposedly returned should thus always terminate abruptly.
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
*/
|
||||
package org.dspace.statistics;
|
||||
|
||||
import au.com.bytecode.opencsv.CSVParser;
|
||||
import au.com.bytecode.opencsv.CSVReader;
|
||||
import au.com.bytecode.opencsv.CSVWriter;
|
||||
import com.maxmind.geoip.Location;
|
||||
@@ -78,8 +77,6 @@ public class SolrLogger
|
||||
|
||||
private static final LookupService locationService;
|
||||
|
||||
private static Map<String, String> metadataStorageInfo;
|
||||
|
||||
private static final boolean useProxies;
|
||||
|
||||
private static List<String> statisticYearCores = new ArrayList<String>();
|
||||
@@ -563,11 +560,6 @@ public class SolrLogger
|
||||
|
||||
}
|
||||
|
||||
public static Map<String, String> getMetadataStorageInfo()
|
||||
{
|
||||
return metadataStorageInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method just used to log the parents.
|
||||
* <ul>
|
||||
@@ -676,18 +668,6 @@ public class SolrLogger
|
||||
|
||||
// We have at least one document good
|
||||
SolrDocument document = response.getResults().get(0);
|
||||
for (Object storedField : metadataStorageInfo.keySet())
|
||||
{
|
||||
// For each of these fields that are stored we are to create a
|
||||
// list of the values it holds now
|
||||
java.util.Collection collection = document
|
||||
.getFieldValues((String) storedField);
|
||||
List<String> storedVals = new ArrayList<String>();
|
||||
storedVals.addAll(collection);
|
||||
// Now add it to our hashmap
|
||||
currentValsStored.put((String) storedField, storedVals);
|
||||
}
|
||||
|
||||
// System.out.println("HERE");
|
||||
// Get the info we need
|
||||
}
|
||||
|
Reference in New Issue
Block a user