[ https://issues.apache.org/jira/browse/LUCENE-10143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17424062#comment-17424062 ]
Uwe Schindler edited comment on LUCENE-10143 at 10/4/21, 5:44 PM: ------------------------------------------------------------------ Maybe we can use project Lombok to automatically generate the FilterXYZ base classes: [https://projectlombok.org/features/Delegate.html] Just create the source class and annotate the "in" or "delegate" final field with the {{@Delegate}} annotation and the compiler generates the methods for us. So we can't forget to delegate. Everything not explicitely defined in the class is autogenerated. This is how to integrate into JavaC or ECJ: https://projectlombok.org/setup/javac, https://projectlombok.org/setup/ecj was (Author: thetaphi): Maybe we can use project Lombok to automatically generate the FilterXYZ base classes: [https://projectlombok.org/features/Delegate.html] Just create the source class and annotate the "in" or "delegate" final field with the {{@Delegate}} annotation and the compiler generates the methods for us. So we can't forget to delegate. Everything not explicitely defined in the class is autogenerated. > RateLimitedIndexOutput should delegate writeShort/writeInt/writeLong > -------------------------------------------------------------------- > > Key: LUCENE-10143 > URL: https://issues.apache.org/jira/browse/LUCENE-10143 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Adrien Grand > Priority: Minor > Attachments: screenshot-1.png > > Time Spent: 3h 10m > Remaining Estimate: 0h > > Otherwise merges are not taking advantage of LUCENE-10125. > cc [~uschindler] -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org