[ 
https://issues.apache.org/jira/browse/LUCENE-8408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16550963#comment-16550963
 ] 

ASF subversion and git services commented on LUCENE-8408:
---------------------------------------------------------

Commit df662a318d69f3eb629abe8ac95cfcc703077eb8 in lucene-solr's branch 
refs/heads/branch_7x from [~dsmiley]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=df662a3 ]

LUCENE-8408: Highlighter: Remove obsolete private AttributeFactory instance

(cherry picked from commit 20a7ee9)


> Code cleanup - TokenStreamFromTermVector - ATTRIBUTE_FACTORY
> ------------------------------------------------------------
>
>                 Key: LUCENE-8408
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8408
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael Braun
>            Priority: Trivial
>         Attachments: LUCENE-8408.patch
>
>
> At the top of TokenStreamFromTermVector:
> {code}
>  //This attribute factory uses less memory when captureState() is called.
>   public static final AttributeFactory ATTRIBUTE_FACTORY =
>       AttributeFactory.getStaticImplementation(
>           AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY, 
> PackedTokenAttributeImpl.class);
> {code}
> This is the default if super() was called with no-args from the constructor, 
> so I believe this can go away.  CC [~dsmiley]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to