[ https://issues.apache.org/jira/browse/LUCENE-8503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16617572#comment-16617572 ]
ASF subversion and git services commented on LUCENE-8503: --------------------------------------------------------- Commit d98e4929a0ea55e8cae4f791ad705f6b776c7c7f in lucene-solr's branch refs/heads/branch_7_5 from [~simonw] [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=d98e492 ] LUCENE-8503: Call #getDelegate instead of direct member access during unwrap Filter*Reader instances access the member or the delegate directly instead of calling getDelegate(). In order to track access of the delegate these methods should call #getDelegat() > Simplify unwrapping Filter*Reader > --------------------------------- > > Key: LUCENE-8503 > URL: https://issues.apache.org/jira/browse/LUCENE-8503 > Project: Lucene - Core > Issue Type: Improvement > Affects Versions: 7.5, master (8.0) > Reporter: Simon Willnauer > Priority: Major > Fix For: 7.6, master (8.0) > > Time Spent: 10m > Remaining Estimate: 0h > > Today we have 3 different kinds of FilterIndexReader. While > FilterDirecotryReader > and FilterLeafReader are simple to distinguish, FilterCodecReader make > decision harder > since now we need instanceof checks to deside which unwrap method we > should call. This > adds a simple interface that allows to build generic unwrap methods to > access the delegat > of each of the filtering readers. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org