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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]