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: 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