You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Tomoko Uchida (Jira)" <ji...@apache.org> on 2022/05/22 06:32:00 UTC
[jira] [Created] (LUCENE-10586) Minor refactoring in Lucene90BlockTreeTermsReader local variables: metaIn, indexMetaIn, termsMetaIn
Tomoko Uchida created LUCENE-10586:
--------------------------------------
Summary: Minor refactoring in Lucene90BlockTreeTermsReader local variables: metaIn, indexMetaIn, termsMetaIn
Key: LUCENE-10586
URL: https://issues.apache.org/jira/browse/LUCENE-10586
Project: Lucene - Core
Issue Type: Improvement
Reporter: Tomoko Uchida
Those three local variables refer to the same {{IndexInput}} object (no clone() is called).
{code}
indexMetaIn = termsMetaIn = metaIn;
{code}
I'm not sure but maybe there are some historical reasons. I wonder if it would be better to have only one reference for the underlying {{IndexInput}} object to make it a little easy to follow the code.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org