File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
messaging/tck/src/main/java/org/eclipse/microprofile/reactive/messaging/tck/framework
api/src/main/java/org/eclipse/microprofile/reactive/streams
tck/src/main/java/org/eclipse/microprofile/reactive/streams/tck Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public PublisherBuilder<T> createPublisher() {
6565 }
6666
6767 public void send (T ... message ) {
68- queue .addAll (Arrays .asList ( message ). stream ().map (SimpleMessage ::new ).collect (Collectors .toList ()));
68+ queue .addAll (Arrays .stream (message ).map (SimpleMessage ::new ).collect (Collectors .toList ()));
6969 trySend ();
7070 }
7171
Original file line number Diff line number Diff line change 2525import org .reactivestreams .Subscriber ;
2626
2727import java .util .Arrays ;
28+ import java .util .Collections ;
2829import java .util .function .Supplier ;
2930import java .util .function .UnaryOperator ;
3031import java .util .stream .Stream ;
@@ -59,7 +60,7 @@ public static <T> PublisherBuilder<T> fromPublisher(Publisher<? extends T> publi
5960 * @return A publisher builder that will emit the element.
6061 */
6162 public static <T > PublisherBuilder <T > of (T t ) {
62- return new PublisherBuilder <>(new Stage .Of (Arrays . asList (t )));
63+ return new PublisherBuilder <>(new Stage .Of (Collections . singletonList (t )));
6364 }
6465
6566 /**
Original file line number Diff line number Diff line change 2525import org .testng .SkipException ;
2626import org .testng .annotations .Test ;
2727
28- import java .util .Arrays ;
28+ import java .util .Collections ;
2929import java .util .List ;
3030import java .util .concurrent .CompletableFuture ;
3131import java .util .concurrent .CompletionStage ;
@@ -54,7 +54,7 @@ public void cancel() {
5454
5555 @ Override
5656 List <Object > reactiveStreamsTckVerifiers () {
57- return Arrays . asList (new SubscriberVerification ());
57+ return Collections . singletonList (new SubscriberVerification ());
5858 }
5959
6060 public class SubscriberVerification extends StageSubscriberBlackboxVerification {
You can’t perform that action at this time.
0 commit comments