You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by si...@apache.org on 2011/05/20 14:35:46 UTC
svn commit: r1125350 -
/lucene/dev/branches/docvalues/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java
Author: simonw
Date: Fri May 20 12:35:46 2011
New Revision: 1125350
URL: http://svn.apache.org/viewvc?rev=1125350&view=rev
Log:
removed unnecessary synchronization
Modified:
lucene/dev/branches/docvalues/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java
Modified: lucene/dev/branches/docvalues/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/docvalues/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java?rev=1125350&r1=1125349&r2=1125350&view=diff
==============================================================================
--- lucene/dev/branches/docvalues/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java (original)
+++ lucene/dev/branches/docvalues/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java Fri May 20 12:35:46 2011
@@ -66,7 +66,7 @@ public class DefaultDocValuesProducer ex
* <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 ex
}
}
- public synchronized void close() throws IOException {
+ public void close() throws IOException {
closeDocValues(docValues.values());
}