From 0733144148f4b4aa686b77e9bf49d6b403fa01bd Mon Sep 17 00:00:00 2001 From: Nathan Rauh Date: Mon, 29 Oct 2018 09:29:19 -0500 Subject: [PATCH] Issue #24 address code review comment about build method exception type --- .../concurrent/ManagedExecutorBuilder.java | 24 +++++++++------- .../concurrent/ThreadContextBuilder.java | 28 +++++++++++-------- 2 files changed, 30 insertions(+), 22 deletions(-) diff --git a/api/src/main/java/org/eclipse/microprofile/concurrent/ManagedExecutorBuilder.java b/api/src/main/java/org/eclipse/microprofile/concurrent/ManagedExecutorBuilder.java index 0c82057..41230c3 100644 --- a/api/src/main/java/org/eclipse/microprofile/concurrent/ManagedExecutorBuilder.java +++ b/api/src/main/java/org/eclipse/microprofile/concurrent/ManagedExecutorBuilder.java @@ -44,17 +44,21 @@ public interface ManagedExecutorBuilder { * instances.

* * @return new instance of ManagedExecutor. - * @throws IllegalArgumentException if a thread context type that is - * configured to be {@link #cleared} or {@link #propagated} is - * unavailable. Also raises IllegalArgumentException if one or - * more of the same context types appear in both the - * {@link #cleared} set and the {@link #propagated} set. - * @throws IllegalStateException if the direct or indirect + * @throws IllegalStateException for any of the following error conditions + * */ ManagedExecutor build(); diff --git a/api/src/main/java/org/eclipse/microprofile/concurrent/ThreadContextBuilder.java b/api/src/main/java/org/eclipse/microprofile/concurrent/ThreadContextBuilder.java index ee2be97..4e04226 100644 --- a/api/src/main/java/org/eclipse/microprofile/concurrent/ThreadContextBuilder.java +++ b/api/src/main/java/org/eclipse/microprofile/concurrent/ThreadContextBuilder.java @@ -43,19 +43,23 @@ public interface ThreadContextBuilder { * instances.

* * @return new instance of ThreadContext. - * @throws IllegalArgumentException if a thread context type that is - * configured to be {@link #cleared} or {@link #propagated} is - * unavailable. Also raises IllegalArgumentException if one or - * more of the same context types appear in multiple of the - * following sets: - * ({@link #cleared}, {@link #propagated}, {@link #unchanged}). - * @throws IllegalStateException if the direct or indirect + * @throws IllegalStateException for any of the following error conditions + * */ ThreadContext build();