Skip to content

Commit

Permalink
rephrase select javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Blef666 committed Jan 22, 2025
1 parent 6781d93 commit 0243898
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions channels/src/main/java/com/softwaremill/jox/Select.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public class Select {
* <p>
* 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).
*/
Expand All @@ -72,8 +73,8 @@ public static <U> U select(SelectClause<? extends U>... clauses) throws Interrup
* <p>
* 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).
*/
Expand Down

0 comments on commit 0243898

Please sign in to comment.