mirror of https://github.com/apache/lucene.git
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:
parent
32c63cea8e
commit
2484c0efe7
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue