easyice commented on issue #13116: URL: https://github.com/apache/lucene/issues/13116#issuecomment-1980472107
In `BKDWriter`, it seems we not pass a class that implements `Runnable` into the `Thread` framework, it just call `run` method directly, so maybe we can consider introducing `CheckedRunnable` to replace `Runnable`, like: ```java @FunctionalInterface public interface CheckedRunnable<E extends Exception> { void run() throws E; } ``` In this way, `IOException` can be thrown in `CheckedRunnable`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org