Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

removed unnecessary synchronization

Simon Willnauer8f13a775b5f2
diff --git a/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java b/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java
index 497a0f815fa..d3d6980d63d 100644
--- a/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java
+++ b/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java
@@ -66,7 +66,7 @@ public class DefaultDocValuesProducer extends PerDocValues {
* <code>null</code> if this field has no {@link DocValues}.
*/
@Override
- public synchronized DocValues docValues(String field) throws IOException {
+ public DocValues docValues(String field) throws IOException {
return docValues.get(field);
}
@@ -145,7 +145,7 @@ public class DefaultDocValuesProducer extends PerDocValues {
}
}
- public synchronized void close() throws IOException {
+ public void close() throws IOException {
closeDocValues(docValues.values());
}