elharo commented on code in PR #2012:
URL: https://github.com/apache/maven-resolver/pull/2012#discussion_r3644748715
##########
maven-resolver-util/src/main/java/org/eclipse/aether/util/concurrency/SmartExecutor.java:
##########
@@ -35,8 +35,10 @@
public interface SmartExecutor extends AutoCloseable {
/**
* Submits a {@link Runnable} to execution.
+ *
+ * @throws RejectedExecutionException If this executor cannot accept the
task.
*/
- void submit(Runnable runnable);
+ void submit(Runnable runnable) throws RejectedExecutionException;
Review Comment:
don't use throws clause for RuntimeExceptions, javadoc comment only
--
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]