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
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() {
65
65
}
66
66
67
67
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 ()));
69
69
trySend ();
70
70
}
71
71
Original file line number Diff line number Diff line change 25
25
import org .reactivestreams .Subscriber ;
26
26
27
27
import java .util .Arrays ;
28
+ import java .util .Collections ;
28
29
import java .util .function .Supplier ;
29
30
import java .util .function .UnaryOperator ;
30
31
import java .util .stream .Stream ;
@@ -59,7 +60,7 @@ public static <T> PublisherBuilder<T> fromPublisher(Publisher<? extends T> publi
59
60
* @return A publisher builder that will emit the element.
60
61
*/
61
62
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 )));
63
64
}
64
65
65
66
/**
Original file line number Diff line number Diff line change 25
25
import org .testng .SkipException ;
26
26
import org .testng .annotations .Test ;
27
27
28
- import java .util .Arrays ;
28
+ import java .util .Collections ;
29
29
import java .util .List ;
30
30
import java .util .concurrent .CompletableFuture ;
31
31
import java .util .concurrent .CompletionStage ;
@@ -54,7 +54,7 @@ public void cancel() {
54
54
55
55
@ Override
56
56
List <Object > reactiveStreamsTckVerifiers () {
57
- return Arrays . asList (new SubscriberVerification ());
57
+ return Collections . singletonList (new SubscriberVerification ());
58
58
}
59
59
60
60
public class SubscriberVerification extends StageSubscriberBlackboxVerification {
You can’t perform that action at this time.
0 commit comments