@@ -36,7 +36,7 @@ public class ObservableFlatMapStreamTest extends RxJavaTest {
3636 @ Test
3737 public void empty () {
3838 Observable .empty ()
39- .flatMapStream (v -> Stream .of (1 , 2 , 3 , 4 , 5 ))
39+ .flatMapStream (_ -> Stream .of (1 , 2 , 3 , 4 , 5 ))
4040 .test ()
4141 .assertResult ();
4242 }
@@ -45,7 +45,7 @@ public void empty() {
4545 public void emptyHidden () {
4646 Observable .empty ()
4747 .hide ()
48- .flatMapStream (v -> Stream .of (1 , 2 , 3 , 4 , 5 ))
48+ .flatMapStream (_ -> Stream .of (1 , 2 , 3 , 4 , 5 ))
4949 .test ()
5050 .assertResult ();
5151 }
@@ -69,15 +69,15 @@ public void justHidden() {
6969 @ Test
7070 public void error () {
7171 Observable .error (new TestException ())
72- .flatMapStream (v -> Stream .of (1 , 2 , 3 , 4 , 5 ))
72+ .flatMapStream (_ -> Stream .of (1 , 2 , 3 , 4 , 5 ))
7373 .test ()
7474 .assertFailure (TestException .class );
7575 }
7676
7777 @ Test
7878 public void supplierFusedError () {
7979 Observable .fromCallable (() -> { throw new TestException (); })
80- .flatMapStream (v -> Stream .of (1 , 2 , 3 , 4 , 5 ))
80+ .flatMapStream (_ -> Stream .of (1 , 2 , 3 , 4 , 5 ))
8181 .test ()
8282 .assertFailure (TestException .class );
8383 }
@@ -86,7 +86,7 @@ public void supplierFusedError() {
8686 public void errorHidden () {
8787 Observable .error (new TestException ())
8888 .hide ()
89- .flatMapStream (v -> Stream .of (1 , 2 , 3 , 4 , 5 ))
89+ .flatMapStream (_ -> Stream .of (1 , 2 , 3 , 4 , 5 ))
9090 .test ()
9191 .assertFailure (TestException .class );
9292 }
@@ -123,7 +123,7 @@ public void rangeHidden() {
123123 @ Test
124124 public void rangeToEmpty () {
125125 Observable .range (1 , 5 )
126- .flatMapStream (v -> Stream .of ())
126+ .flatMapStream (_ -> Stream .of ())
127127 .test ()
128128 .assertResult ();
129129 }
@@ -222,37 +222,37 @@ public void crossMapHidden() {
222222
223223 @ Test
224224 public void onSubscribe () {
225- TestHelper .checkDoubleOnSubscribeObservable (f -> f .flatMapStream (v -> Stream .of (1 , 2 )));
225+ TestHelper .checkDoubleOnSubscribeObservable (f -> f .flatMapStream (_ -> Stream .of (1 , 2 )));
226226 }
227227
228228 @ Test
229229 public void mapperThrows () {
230230 Observable .just (1 ).hide ()
231- .concatMapStream (v -> { throw new TestException (); })
231+ .concatMapStream (_ -> { throw new TestException (); })
232232 .test ()
233233 .assertFailure (TestException .class );
234234 }
235235
236236 @ Test
237237 public void mapperNull () {
238238 Observable .just (1 ).hide ()
239- .concatMapStream (v -> null )
239+ .concatMapStream (_ -> null )
240240 .test ()
241241 .assertFailure (NullPointerException .class );
242242 }
243243
244244 @ Test
245245 public void streamNull () {
246246 Observable .just (1 ).hide ()
247- .concatMapStream (v -> Stream .of (1 , null ))
247+ .concatMapStream (_ -> Stream .of (1 , null ))
248248 .test ()
249249 .assertFailure (NullPointerException .class , 1 );
250250 }
251251
252252 @ Test
253253 public void hasNextThrows () {
254254 Observable .just (1 ).hide ()
255- .concatMapStream (v -> Stream .generate (() -> { throw new TestException (); }))
255+ .concatMapStream (_ -> Stream .generate (() -> { throw new TestException (); }))
256256 .test ()
257257 .assertFailure (TestException .class );
258258 }
@@ -261,7 +261,7 @@ public void hasNextThrows() {
261261 public void hasNextThrowsLater () {
262262 AtomicInteger counter = new AtomicInteger ();
263263 Observable .just (1 ).hide ()
264- .concatMapStream (v -> Stream .generate (() -> {
264+ .concatMapStream (_ -> Stream .generate (() -> {
265265 if (counter .getAndIncrement () == 0 ) {
266266 return 1 ;
267267 }
@@ -279,7 +279,7 @@ public void mapperThrowsWhenUpstreamErrors() throws Throwable {
279279 AtomicInteger counter = new AtomicInteger ();
280280
281281 TestObserver <Integer > to = ps .hide ()
282- .concatMapStream (v -> {
282+ .concatMapStream (_ -> {
283283 if (counter .getAndIncrement () == 0 ) {
284284 return Stream .of (1 , 2 );
285285 }
@@ -320,7 +320,7 @@ public Integer next() {
320320
321321 Observable .just (1 )
322322 .hide ()
323- .concatMapStream (v -> stream )
323+ .concatMapStream (_ -> stream )
324324 .subscribe (to );
325325
326326 to .assertEmpty ();
@@ -348,7 +348,7 @@ public Integer next() {
348348
349349 Observable .just (1 )
350350 .hide ()
351- .concatMapStream (v -> stream )
351+ .concatMapStream (_ -> stream )
352352 .subscribe (to );
353353
354354 to .assertEmpty ();
@@ -358,7 +358,7 @@ public Integer next() {
358358 public void asyncUpstreamFused () {
359359 UnicastSubject <Integer > us = UnicastSubject .create ();
360360
361- TestObserver <Integer > to = us .flatMapStream (v -> Stream .of (1 , 2 ))
361+ TestObserver <Integer > to = us .flatMapStream (_ -> Stream .of (1 , 2 ))
362362 .test ();
363363
364364 assertTrue (us .hasObservers ());
@@ -378,7 +378,7 @@ public void asyncUpstreamFusionBoundary() {
378378
379379 TestObserver <Integer > to = us
380380 .map (v -> v + 1 )
381- .flatMapStream (v -> Stream .of (1 , 2 ))
381+ .flatMapStream (_ -> Stream .of (1 , 2 ))
382382 .test ();
383383
384384 assertTrue (us .hasObservers ());
@@ -397,9 +397,9 @@ public void fusedPollCrash() {
397397 UnicastSubject <Integer > us = UnicastSubject .create ();
398398
399399 TestObserver <Integer > to = us
400- .map (v -> { throw new TestException (); })
400+ .map (_ -> { throw new TestException (); })
401401 .compose (TestHelper .observableStripBoundary ())
402- .flatMapStream (v -> Stream .of (1 , 2 ))
402+ .flatMapStream (_ -> Stream .of (1 , 2 ))
403403 .test ();
404404
405405 assertTrue (us .hasObservers ());
@@ -413,7 +413,7 @@ public void fusedPollCrash() {
413413
414414 @ Test
415415 public void dispose () {
416- TestHelper .checkDisposed (PublishSubject .create ().flatMapStream (v -> Stream .of (1 )));
416+ TestHelper .checkDisposed (PublishSubject .create ().flatMapStream (_ -> Stream .of (1 )));
417417 }
418418
419419 @ Test
@@ -429,7 +429,7 @@ protected void subscribeActual(@NonNull Observer<? super Integer> observer) {
429429 observer .onComplete ();
430430 }
431431 }
432- .flatMapStream (v -> {
432+ .flatMapStream (_ -> {
433433 calls .getAndIncrement ();
434434 throw new TestException ();
435435 })
@@ -453,7 +453,7 @@ protected void subscribeActual(@NonNull Observer<? super Integer> observer) {
453453 observer .onComplete ();
454454 }
455455 }
456- .flatMapStream (v -> {
456+ .flatMapStream (_ -> {
457457 calls .getAndIncrement ();
458458 return Stream .of (1 );
459459 })
0 commit comments