easyice commented on issue #13116: URL: https://github.com/apache/lucene/issues/13116#issuecomment-1980791102
This is also a good idea! If we use `CheckedRunnable`, we also need to narrow the type of exceptions thrown to `IOException` only. like: ```diff - Runnable finalizer = writer.writeField(...) + CheckedRunnable<IOException> finalizer = writer.writeField(...) ``` `IORunnable` will makes the code more concise, the use of `Runnable` outside of the thread framework seems not widespread. @mikemccand , what do you think of this way of avoiding throwing an `UncheckedIOException` rather than catching it? -- 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]
