diff --git a/channels/src/main/java/com/softwaremill/jox/Select.java b/channels/src/main/java/com/softwaremill/jox/Select.java index dcb2ae9..e677929 100644 --- a/channels/src/main/java/com/softwaremill/jox/Select.java +++ b/channels/src/main/java/com/softwaremill/jox/Select.java @@ -48,7 +48,8 @@ public class Select { *

* If no clauses are given, throws {@link ChannelDoneException}. * - * @param clauses The clauses, from which one will be selected. Not {@code null}. + * @param clauses The clauses, from which one will be selected. Array must not be empty or {@code null} and + * can't contain {@code null} values. * @return The value returned by the selected clause. * @throws ChannelClosedException When any of the channels is closed (done or in error). */ @@ -72,8 +73,8 @@ public static U select(SelectClause... clauses) throws Interrup *

* If no clauses are given, returns {@link ChannelDone}. * - * @param clauses The clauses, from which one will be selected. Must not be empty or {@code null}. - * Can't contain {@code null} values. + * @param clauses The clauses, from which one will be selected. Array must not be empty or {@code null} and + * can't contain {@code null} values. * @return Either the value returned by the selected clause, or {@link ChannelClosed}, when any of the channels * is closed (done or in error). */