SOLR-1717 SolrHighlighter#fragmenter, formatter etc do not need synchronization

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@900680 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2010-01-19 07:03:22 +00:00
parent 076a559149
commit f287643688
1 changed files with 4 additions and 4 deletions

View File

@ -41,19 +41,19 @@ public abstract class SolrHighlighter
// Thread safe registry
protected final Map<String,SolrFormatter> formatters =
Collections.synchronizedMap( new HashMap<String, SolrFormatter>() );
new HashMap<String, SolrFormatter>();
// Thread safe registry
protected final Map<String,SolrFragmenter> fragmenters =
Collections.synchronizedMap( new HashMap<String, SolrFragmenter>() );
new HashMap<String, SolrFragmenter>() ;
// Thread safe registry
protected final Map<String, SolrFragListBuilder> fragListBuilders =
Collections.synchronizedMap( new HashMap<String, SolrFragListBuilder>() );
new HashMap<String, SolrFragListBuilder>() ;
// Thread safe registry
protected final Map<String, SolrFragmentsBuilder> fragmentsBuilders =
Collections.synchronizedMap( new HashMap<String, SolrFragmentsBuilder>() );
new HashMap<String, SolrFragmentsBuilder>() ;
@Deprecated
public abstract void initalize( SolrConfig config );