SOLR-1042 -- Fix memory leak in DIH by making TemplateString non-static member in VariableResolverImpl

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@748969 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2009-03-01 07:33:25 +00:00
parent 32c63cea8e
commit 2484c0efe7
2 changed files with 5 additions and 2 deletions

View File

@ -158,6 +158,9 @@ Bug Fixes
20.SOLR-1040: XPathEntityProcessor fails with an xpath like /feed/entry/link[@type='text/html']/@href
(Noble Paul via shalin)
21.SOLR-1042: Fix memory leak in DIH by making TemplateString non-static member in VariableResolverImpl
(Ryuuichi Kumai via shalin)
Documentation
----------------------

View File

@ -39,7 +39,7 @@ public class VariableResolverImpl extends VariableResolver {
*/
ContextImpl context;
private static final TemplateString TEMPLATE_STRING = new TemplateString();
private final TemplateString templateString = new TemplateString();
public VariableResolverImpl() {
}
@ -84,7 +84,7 @@ public class VariableResolverImpl extends VariableResolver {
}
public String replaceTokens(String template) {
return TEMPLATE_STRING.replaceTokens(template, this);
return templateString.replaceTokens(template, this);
}
@SuppressWarnings("unchecked")