Replies: 1 comment
-
|
This is done for convenience so that the consumers don't need to catch the exception, especially if they use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment the
Startableclassesclose()method looked like so:@Override default void close() { stop(); }However,
StartableimplementsAutoClosablewhere the close method has an Exception signature. I suggest to keep this signature in theclose()method ofStarable.Reason: It allows users to override the
closemethod, executing other methods that might also throw exception, without explicitly catching them.Beta Was this translation helpful? Give feedback.
All reactions