language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
ReactiveX
RxJava
db627720e5518845677dff536e6b0f2d9e5c2ea3.json
Fix JavaDoc image for Single#flatMapObservable (#5297) `Single.flatMapObservable.png` should be used for `Single#flatMapObservable` instead of `Single.flatMap.png`.
src/main/java/io/reactivex/Single.java
@@ -2097,7 +2097,7 @@ public final <U> Observable<U> flattenAsObservable(final Function<? super T, ? e * Returns an Observable that is based on applying a specified function to the item emitted by the source Single, * where that function returns a SingleSource. * <p> - * <img width="640" height="3...
false
Other
ReactiveX
RxJava
67a951b655b73d2222b8ddc6b93532688c487b77.json
Improve doOnDispose JavaDoc (#5296) * correct javadoc note in Observable.doOnDispose() The note was claiming Observable.doOnDispose() would be called for terminal events of the Observable, which is not the case * small improvement to .doOnDispose javadocs to refer to Actions * add @throws mentions to doOnDis...
src/main/java/io/reactivex/Completable.java
@@ -1107,13 +1107,13 @@ public final Completable doOnComplete(Action onComplete) { } /** - * Returns a Completable which calls the given onDispose callback if the child subscriber cancels - * the subscription. + * Calls the shared {@code Action} if a CompletableObserver subscribed to the current...
true
Other
ReactiveX
RxJava
67a951b655b73d2222b8ddc6b93532688c487b77.json
Improve doOnDispose JavaDoc (#5296) * correct javadoc note in Observable.doOnDispose() The note was claiming Observable.doOnDispose() would be called for terminal events of the Observable, which is not the case * small improvement to .doOnDispose javadocs to refer to Actions * add @throws mentions to doOnDis...
src/main/java/io/reactivex/Maybe.java
@@ -2441,13 +2441,14 @@ public final Maybe<T> doFinally(Action onFinally) { } /** - * Calls the shared runnable if a MaybeObserver subscribed to the current Maybe + * Calls the shared {@code Action} if a MaybeObserver subscribed to the current Maybe * disposes the common Disposable it received...
true
Other
ReactiveX
RxJava
67a951b655b73d2222b8ddc6b93532688c487b77.json
Improve doOnDispose JavaDoc (#5296) * correct javadoc note in Observable.doOnDispose() The note was claiming Observable.doOnDispose() would be called for terminal events of the Observable, which is not the case * small improvement to .doOnDispose javadocs to refer to Actions * add @throws mentions to doOnDis...
src/main/java/io/reactivex/Observable.java
@@ -6895,8 +6895,6 @@ public final Observable<T> doFinally(Action onFinally) { * If the action throws a runtime exception, that exception is rethrown by the {@code dispose()} call, * sometimes as a {@code CompositeException} if there were multiple exceptions along the way. * <p> - * Note that term...
true
Other
ReactiveX
RxJava
67a951b655b73d2222b8ddc6b93532688c487b77.json
Improve doOnDispose JavaDoc (#5296) * correct javadoc note in Observable.doOnDispose() The note was claiming Observable.doOnDispose() would be called for terminal events of the Observable, which is not the case * small improvement to .doOnDispose javadocs to refer to Actions * add @throws mentions to doOnDis...
src/main/java/io/reactivex/Single.java
@@ -1926,14 +1926,15 @@ public final Single<T> doOnError(final Consumer<? super Throwable> onError) { } /** - * Calls the shared runnable if a SingleObserver subscribed to the current Single + * Calls the shared {@code Action} if a SingleObserver subscribed to the current Single * disposes the...
true
Other
ReactiveX
RxJava
83d1a4f4eb66fbf6e2afd6045f96e31ced6aedfc.json
Remove @NonNull annotations in BiConsumer (#5257)
src/main/java/io/reactivex/functions/BiConsumer.java
@@ -13,8 +13,6 @@ package io.reactivex.functions; -import io.reactivex.annotations.NonNull; - /** * A functional interface (callback) that accepts two values (of possibly different types). * @param <T1> the first value type @@ -28,5 +26,5 @@ * @param t2 the second value * @throws Exception on erro...
false
Other
ReactiveX
RxJava
6c8b0efade6e2b82b32daa18fec7b045aabb3f6c.json
2.x: fix Flowable.toList() onNext/cancel race (#5247)
src/main/java/io/reactivex/internal/operators/flowable/FlowableToList.java
@@ -69,7 +69,10 @@ public void onSubscribe(Subscription s) { @Override public void onNext(T t) { - value.add(t); + U v = value; + if (v != null) { + v.add(t); + } } @Override
true
Other
ReactiveX
RxJava
6c8b0efade6e2b82b32daa18fec7b045aabb3f6c.json
2.x: fix Flowable.toList() onNext/cancel race (#5247)
src/test/java/io/reactivex/internal/operators/flowable/FlowableToListTest.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.flowable; +import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.*; import java.util.*; @@ -23,7 +24,6 @@ import org.reactivestreams.Subscriber; import io.reactivex.*; -import io.reactivex.Flowable; import io.reactivex.e...
true
Other
ReactiveX
RxJava
851de4154895d899577ce69b13585c26eb96cf84.json
Add TimeUnit null check test case in Timed (#5231) * Add TimeUnit null check test case in Timed * Correct ugly formatting in BasicIntQueueDisposable * Reformatting line * Add blockingIterable’s negative buffer size fail test * Modify BlockingMultiObserver field’s modfier to private * revert style, modif...
src/test/java/io/reactivex/schedulers/TimedTest.java
@@ -84,4 +84,9 @@ public void toStringOf() { assertEquals("Timed[time=5, unit=SECONDS, value=1]", t1.toString()); } + + @Test(expected = NullPointerException.class) + public void timeUnitNullFail() throws Exception { + new Timed<Integer>(1, 5, null); + } }
false
Other
ReactiveX
RxJava
ab0c59094d11142cea4fef70169f053e062d85ec.json
Fix a small typo in ParallelFlowable
src/main/java/io/reactivex/parallel/ParallelFlowable.java
@@ -32,7 +32,7 @@ * Abstract base class for Parallel publishers that take an array of Subscribers. * <p> * Use {@code from()} to start processing a regular Publisher in 'rails'. - * Use {@code runOn()} to introduce where each 'rail' shoud run on thread-vise. + * Use {@code runOn()} to introduce where each 'rail' ...
false
Other
ReactiveX
RxJava
21a7a0567a51193734e21b234fa3ed925e65d0ec.json
2.x: increase timeout on parallel & completable tests (#5199)
src/test/java/io/reactivex/completable/CompletableTest.java
@@ -151,7 +151,7 @@ public void assertSubscriptions(int n) { /** An error Completable object. */ final ErrorCompletable error = new ErrorCompletable(); - @Test(timeout = 1000) + @Test(timeout = 5000) public void complete() { Completable c = Completable.complete(); @@ -163,14 +163,14 @@...
true
Other
ReactiveX
RxJava
21a7a0567a51193734e21b234fa3ed925e65d0ec.json
2.x: increase timeout on parallel & completable tests (#5199)
src/test/java/io/reactivex/parallel/ParallelFlowableTest.java
@@ -744,7 +744,8 @@ public void parallelismAndPrefetchAsync() { .map(Functions.<Integer>identity()) .sequential(prefetch) .test() - .awaitDone(10, TimeUnit.SECONDS) + .withTag("parallelism = " + parallelism + ", prefetch = " + prefetch) + ...
true
Other
ReactiveX
RxJava
a86425a047c82286db0dfb3dce955b283039f59f.json
2.x: improve BaseTestConsumer with awaitCount & timeout (#5155) * 2.x: improve BaseTestConsumer with awaitCount & timeout * Improve diff coverage
src/main/java/io/reactivex/internal/util/VolatileSizeArrayList.java
@@ -0,0 +1,187 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unle...
true
Other
ReactiveX
RxJava
a86425a047c82286db0dfb3dce955b283039f59f.json
2.x: improve BaseTestConsumer with awaitCount & timeout (#5155) * 2.x: improve BaseTestConsumer with awaitCount & timeout * Improve diff coverage
src/main/java/io/reactivex/observers/BaseTestConsumer.java
@@ -21,9 +21,8 @@ import io.reactivex.disposables.Disposable; import io.reactivex.exceptions.CompositeException; import io.reactivex.functions.Predicate; -import io.reactivex.internal.functions.Functions; -import io.reactivex.internal.functions.ObjectHelper; -import io.reactivex.internal.util.ExceptionHelper; +impor...
true
Other
ReactiveX
RxJava
a86425a047c82286db0dfb3dce955b283039f59f.json
2.x: improve BaseTestConsumer with awaitCount & timeout (#5155) * 2.x: improve BaseTestConsumer with awaitCount & timeout * Improve diff coverage
src/test/java/io/reactivex/internal/util/VolatileSizeArrayListTest.java
@@ -0,0 +1,112 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unle...
true
Other
ReactiveX
RxJava
a86425a047c82286db0dfb3dce955b283039f59f.json
2.x: improve BaseTestConsumer with awaitCount & timeout (#5155) * 2.x: improve BaseTestConsumer with awaitCount & timeout * Improve diff coverage
src/test/java/io/reactivex/subscribers/TestSubscriberTest.java
@@ -33,6 +33,8 @@ import io.reactivex.internal.functions.Functions; import io.reactivex.internal.fuseable.QueueSubscription; import io.reactivex.internal.subscriptions.*; +import io.reactivex.observers.BaseTestConsumer; +import io.reactivex.observers.BaseTestConsumer.TestWaitStrategy; import io.reactivex.processors...
true
Other
ReactiveX
RxJava
b41ac3b61c6fa5191f8ad19e03f6e5457dbcc28f.json
Add @NonNull to the methods of Emitter (#5156)
src/main/java/io/reactivex/Emitter.java
@@ -12,6 +12,8 @@ */ package io.reactivex; +import io.reactivex.annotations.NonNull; + /** * Base interface for emitting signals in a push-fashion in various generator-like source * operators (create, generate). @@ -24,13 +26,13 @@ * Signal a normal value. * @param value the value to signal, not n...
false
Other
ReactiveX
RxJava
7494a2c05cf2f02142fc3193682141826974661a.json
2.x: update javadoc of flatMap() overloads (#5127)
src/main/java/io/reactivex/Flowable.java
@@ -8216,9 +8216,10 @@ public final Single<T> firstOrError() { * <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/flatMap.png" alt=""> * <dl> * <dt><b>Backpressure:</b></dt> - * <dd>The operator honors backpressure from downstream. The outer {@c...
false
Other
ReactiveX
RxJava
70922a6a4f7093cb7c924e91a1edf966bd0071c0.json
2.x cleanup: add missing override annotations.
src/main/java/io/reactivex/internal/operators/parallel/ParallelJoin.java
@@ -199,6 +199,7 @@ public void onComplete() { drain(); } + @Override void drain() { if (getAndIncrement() != 0) { return; @@ -323,6 +324,7 @@ void drainLoop() { super(actual, n, prefetch); } + @Override void o...
false
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/main/java/io/reactivex/Flowable.java
@@ -25,7 +25,6 @@ import io.reactivex.internal.functions.*; import io.reactivex.internal.fuseable.*; import io.reactivex.internal.operators.flowable.*; -import io.reactivex.internal.operators.flowable.FlowableStrict.StrictSubscriber; import io.reactivex.internal.operators.observable.ObservableFromPublisher; import...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/main/java/io/reactivex/internal/observers/QueueDrainObserver.java
@@ -17,7 +17,7 @@ import io.reactivex.Observer; import io.reactivex.disposables.Disposable; -import io.reactivex.internal.fuseable.SimpleQueue; +import io.reactivex.internal.fuseable.*; import io.reactivex.internal.util.*; /** @@ -30,14 +30,14 @@ */ public abstract class QueueDrainObserver<T, U, V> extends Q...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/main/java/io/reactivex/internal/operators/flowable/FlowableBufferBoundary.java
@@ -24,7 +24,7 @@ import io.reactivex.exceptions.Exceptions; import io.reactivex.functions.Function; import io.reactivex.internal.functions.ObjectHelper; -import io.reactivex.internal.fuseable.SimpleQueue; +import io.reactivex.internal.fuseable.SimplePlainQueue; import io.reactivex.internal.queue.MpscLinkedQueue; ...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/main/java/io/reactivex/internal/operators/flowable/FlowableConcatMapPublisher.java
@@ -12,20 +12,11 @@ */ package io.reactivex.internal.operators.flowable; -import java.util.concurrent.Callable; -import java.util.concurrent.atomic.AtomicInteger; - import org.reactivestreams.*; -import io.reactivex.*; -import io.reactivex.exceptions.Exceptions; +import io.reactivex.Flowable; import io.reactiv...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/main/java/io/reactivex/internal/operators/flowable/FlowableMapPublisher.java
@@ -18,8 +18,7 @@ import io.reactivex.Flowable; import io.reactivex.functions.Function; -import io.reactivex.internal.fuseable.ConditionalSubscriber; -import io.reactivex.internal.operators.flowable.FlowableMap.*; +import io.reactivex.internal.operators.flowable.FlowableMap.MapSubscriber; /** * Map working wit...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/main/java/io/reactivex/internal/operators/flowable/FlowableReduceSeedSingle.java
@@ -21,7 +21,6 @@ import io.reactivex.functions.BiFunction; import io.reactivex.internal.functions.ObjectHelper; import io.reactivex.internal.subscriptions.SubscriptionHelper; -import io.reactivex.plugins.RxJavaPlugins; /** * Reduce a sequence of values, starting from a seed value and by using @@ -79,37 +78,28 ...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/main/java/io/reactivex/internal/operators/flowable/FlowableStrict.java
@@ -1,123 +0,0 @@ -/** - * Copyright (c) 2016-present, RxJava Contributors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unle...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/main/java/io/reactivex/internal/operators/observable/ObservableBufferBoundary.java
@@ -13,7 +13,6 @@ package io.reactivex.internal.operators.observable; -import io.reactivex.internal.functions.ObjectHelper; import java.util.*; import java.util.concurrent.Callable; import java.util.concurrent.atomic.AtomicInteger; @@ -24,7 +23,8 @@ import io.reactivex.exceptions.Exceptions; import io.reactiv...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/main/java/io/reactivex/internal/subscribers/QueueDrainSubscriber.java
@@ -96,7 +96,7 @@ protected final void fastPathEmitMax(U value, boolean delayError, Disposable dis protected final void fastPathOrderedEmitMax(U value, boolean delayError, Disposable dispose) { final Subscriber<? super V> s = actual; - final SimpleQueue<U> q = queue; + final SimplePlainQue...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/main/java/io/reactivex/internal/subscribers/StrictSubscriber.java
@@ -0,0 +1,111 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unle...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/main/java/io/reactivex/internal/subscribers/SubscriberResourceWrapper.java
@@ -36,21 +36,8 @@ public SubscriberResourceWrapper(Subscriber<? super T> actual) { @Override public void onSubscribe(Subscription s) { - for (;;) { - Subscription current = subscription.get(); - if (current == SubscriptionHelper.CANCELLED) { - s.cancel(); - ...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/main/java/io/reactivex/internal/util/QueueDrainHelper.java
@@ -21,7 +21,7 @@ import io.reactivex.disposables.Disposable; import io.reactivex.exceptions.*; import io.reactivex.functions.BooleanSupplier; -import io.reactivex.internal.fuseable.SimpleQueue; +import io.reactivex.internal.fuseable.*; import io.reactivex.internal.queue.*; /** @@ -33,56 +33,6 @@ private QueueDr...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/test/java/io/reactivex/Retry.java
@@ -0,0 +1,68 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unles...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/test/java/io/reactivex/XFlatMapTest.java
@@ -18,7 +18,7 @@ import java.util.List; import java.util.concurrent.CyclicBarrier; -import org.junit.Test; +import org.junit.*; import org.reactivestreams.Publisher; import io.reactivex.exceptions.TestException; @@ -30,6 +30,9 @@ public class XFlatMapTest { + @Rule + public Retry retry = new Retry(3...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/test/java/io/reactivex/internal/observers/FutureObserverTest.java
@@ -0,0 +1,323 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unle...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/test/java/io/reactivex/internal/operators/flowable/FlowableReduceWithSingleTest.java
@@ -0,0 +1,47 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unles...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/test/java/io/reactivex/internal/operators/flowable/FlowableStrictTest.java
@@ -23,7 +23,9 @@ import io.reactivex.*; import io.reactivex.exceptions.TestException; +import io.reactivex.internal.subscribers.StrictSubscriber; import io.reactivex.internal.subscriptions.BooleanSubscription; +import io.reactivex.processors.PublishProcessor; import io.reactivex.schedulers.Schedulers; import io...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/test/java/io/reactivex/internal/operators/flowable/FlowableTakeLastOneTest.java
@@ -21,7 +21,7 @@ import org.junit.Test; import io.reactivex.*; -import io.reactivex.Flowable; +import io.reactivex.exceptions.TestException; import io.reactivex.functions.*; import io.reactivex.subscribers.*; @@ -153,4 +153,11 @@ public Flowable<Object> apply(Flowable<Object> f) throws Exception { });...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/test/java/io/reactivex/internal/operators/flowable/FlowableZipTest.java
@@ -14,6 +14,7 @@ package io.reactivex.internal.operators.flowable; import static org.junit.Assert.*; +import static org.mockito.ArgumentMatchers.*; import static org.mockito.Mockito.*; import java.lang.reflect.*; @@ -26,10 +27,10 @@ import org.reactivestreams.*; import io.reactivex.*; -import io.reactivex....
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/test/java/io/reactivex/internal/operators/maybe/MaybeConcatPublisherTest.java
@@ -0,0 +1,41 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unles...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/test/java/io/reactivex/internal/operators/single/SingleConcatPublisherTest.java
@@ -0,0 +1,41 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unles...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/test/java/io/reactivex/internal/subscribers/FutureSubscriberTest.java
@@ -268,4 +268,17 @@ public void onNextThenOnCompleteTwice() throws Exception { assertEquals(1, fs.get(5, TimeUnit.MILLISECONDS).intValue()); } + + @Test + public void completeAsync() throws Exception { + Schedulers.single().scheduleDirect(new Runnable() { + @Override + ...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/test/java/io/reactivex/internal/subscribers/SubscriberResourceWrapperTest.java
@@ -0,0 +1,83 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unles...
true
Other
ReactiveX
RxJava
421c5bbb2312b9364e11a0f02cf84126e94961fb.json
2.x: improve coverage, remove unused code (#5119)
src/test/java/io/reactivex/internal/util/QueueDrainHelperTest.java
@@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unle...
true
Other
ReactiveX
RxJava
7bfecccedd8641027a17438192a1ff30fd1addb8.json
Add doAfterTerminate callback to the Single type. (#5093) * Add doAfterTerminate callback to the Single type. * Mark the doAfterTerminate() experimental since 2.0.6
src/main/java/io/reactivex/Single.java
@@ -1798,6 +1798,32 @@ public final Single<T> doAfterSuccess(Consumer<? super T> onAfterSuccess) { return RxJavaPlugins.onAssembly(new SingleDoAfterSuccess<T>(this, onAfterSuccess)); } + /** + * Registers an {@link Action} to be called after this Single invokes either onSuccess or onError. + ...
true
Other
ReactiveX
RxJava
7bfecccedd8641027a17438192a1ff30fd1addb8.json
Add doAfterTerminate callback to the Single type. (#5093) * Add doAfterTerminate callback to the Single type. * Mark the doAfterTerminate() experimental since 2.0.6
src/main/java/io/reactivex/internal/operators/single/SingleDoAfterTerminate.java
@@ -0,0 +1,101 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unle...
true
Other
ReactiveX
RxJava
7bfecccedd8641027a17438192a1ff30fd1addb8.json
Add doAfterTerminate callback to the Single type. (#5093) * Add doAfterTerminate callback to the Single type. * Mark the doAfterTerminate() experimental since 2.0.6
src/test/java/io/reactivex/internal/operators/single/SingleDoAfterTerminateTest.java
@@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unle...
true
Other
ReactiveX
RxJava
28d13528c8eac75e454f567af6af41c84beb8bae.json
2.x: fix scan(seed, f) to emit accumulated values asap (#5090)
src/main/java/io/reactivex/internal/operators/flowable/FlowableScanSeed.java
@@ -13,14 +13,17 @@ package io.reactivex.internal.operators.flowable; import java.util.concurrent.Callable; +import java.util.concurrent.atomic.*; import org.reactivestreams.*; import io.reactivex.exceptions.Exceptions; import io.reactivex.functions.BiFunction; import io.reactivex.internal.functions.ObjectH...
true
Other
ReactiveX
RxJava
28d13528c8eac75e454f567af6af41c84beb8bae.json
2.x: fix scan(seed, f) to emit accumulated values asap (#5090)
src/test/java/io/reactivex/flowable/FlowableScanTests.java
@@ -1,210 +0,0 @@ -/** - * Copyright (c) 2016-present, RxJava Contributors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unle...
true
Other
ReactiveX
RxJava
28d13528c8eac75e454f567af6af41c84beb8bae.json
2.x: fix scan(seed, f) to emit accumulated values asap (#5090)
src/test/java/io/reactivex/internal/operators/flowable/FlowableScanTest.java
@@ -13,20 +13,23 @@ package io.reactivex.internal.operators.flowable; -import static org.junit.Assert.assertEquals; +import static org.junit.Assert.*; import static org.mockito.Mockito.*; import java.util.*; -import java.util.concurrent.Callable; +import java.util.concurrent.*; import java.util.concurrent.ato...
true
Other
ReactiveX
RxJava
91346ce510b4f0a7dae0e9df30e0cb572f13a330.json
Fix javadoc sentence warning
src/test/java/io/reactivex/plugins/RxJavaPluginsTest.java
@@ -1170,7 +1170,7 @@ public void uncaughtException(Thread t, Throwable e) { } /** - * Ensure set*() accepts a consumers/functions with wider bounds + * Ensure set*() accepts a consumers/functions with wider bounds. * @throws Exception on error */ @Test
true
Other
ReactiveX
RxJava
91346ce510b4f0a7dae0e9df30e0cb572f13a330.json
Fix javadoc sentence warning
src/test/java/io/reactivex/schedulers/NewThreadSchedulerTest.java
@@ -117,7 +117,7 @@ public void run() { } /** - * Regression test to ensure there is no NPE when the worker has been disposed + * Regression test to ensure there is no NPE when the worker has been disposed. * @throws Exception on error */ @Test
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/disposables/EmptyDisposable.java
@@ -14,6 +14,7 @@ package io.reactivex.internal.disposables; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.internal.fuseable.QueueDisposable; /** @@ -93,6 +94,7 @@ public boolean offer(Object v1, Object v2) { throw new UnsupportedOperationException("Should not be...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/fuseable/SimplePlainQueue.java
@@ -13,13 +13,16 @@ package io.reactivex.internal.fuseable; +import io.reactivex.annotations.Nullable; + /** * Override of the SimpleQueue interface with no throws Exception on poll. * * @param <T> the value type to enqueue and dequeue, not null */ public interface SimplePlainQueue<T> extends SimpleQueue...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/fuseable/SimpleQueue.java
@@ -13,6 +13,8 @@ package io.reactivex.internal.fuseable; +import io.reactivex.annotations.Nullable; + /** * A minimalist queue interface without the method bloat of java.util.Collection and java.util.Queue. * @@ -24,6 +26,10 @@ boolean offer(T v1, T v2); + /** + * @return null to indicate an ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/observers/DeferredScalarDisposable.java
@@ -14,6 +14,7 @@ package io.reactivex.internal.observers; import io.reactivex.Observer; +import io.reactivex.annotations.Nullable; import io.reactivex.plugins.RxJavaPlugins; /** @@ -110,6 +111,7 @@ public final void complete() { actual.onComplete(); } + @Nullable @Override public f...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableCombineLatest.java
@@ -16,6 +16,7 @@ import java.util.Iterator; import java.util.concurrent.atomic.*; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.Flowable; @@ -466,6 +467,7 @@ public int requestFusion(int requestedMode) { return m; } + @Nullable ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableDistinct.java
@@ -16,6 +16,7 @@ import java.util.Collection; import java.util.concurrent.Callable; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.exceptions.Exceptions; @@ -117,6 +118,7 @@ public int requestFusion(int mode) { return transitiveBoundaryFusion(mode); ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableDistinctUntilChanged.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.flowable; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.functions.*; @@ -106,6 +107,7 @@ public int requestFusion(int mode) { return transitiveBoundaryFusion(mode); } + @Nulla...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableDoAfterNext.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.flowable; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.annotations.Experimental; @@ -74,6 +75,7 @@ public int requestFusion(int mode) { return transitiveBoundaryFusion(mode); } + ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableDoFinally.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.flowable; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.annotations.Experimental; @@ -130,6 +131,7 @@ public boolean isEmpty() { return qs.isEmpty(); } + @Nullable @O...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableDoOnEach.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.flowable; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.exceptions.*; @@ -144,6 +145,7 @@ public int requestFusion(int mode) { return transitiveBoundaryFusion(mode); } + @Null...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableFilter.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.flowable; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.functions.Predicate; @@ -79,6 +80,7 @@ public int requestFusion(int mode) { return transitiveBoundaryFusion(mode); } + ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableFlatMapCompletable.java
@@ -15,6 +15,7 @@ import java.util.concurrent.atomic.AtomicReference; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.*; @@ -174,6 +175,7 @@ public void request(long n) { // ignored, no values emitted } + @Nullable @Override ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableFlattenIterable.java
@@ -17,6 +17,7 @@ import java.util.concurrent.Callable; import java.util.concurrent.atomic.*; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.exceptions.*; @@ -413,6 +414,7 @@ public boolean isEmpty() { return (it != null && !it.hasNext()) || queue.isEmp...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableFromArray.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.flowable; +import io.reactivex.annotations.Nullable; import org.reactivestreams.Subscriber; import io.reactivex.Flowable; @@ -55,6 +56,7 @@ public final int requestFusion(int mode) { return mode & SYNC; } + @Nullable ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableFromIterable.java
@@ -15,6 +15,7 @@ import java.util.Iterator; +import io.reactivex.annotations.Nullable; import org.reactivestreams.Subscriber; import io.reactivex.Flowable; @@ -87,6 +88,7 @@ public final int requestFusion(int mode) { return mode & SYNC; } + @Nullable @Override ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableGroupBy.java
@@ -17,6 +17,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.*; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.exceptions.Exceptions; @@ -353,6 +354,7 @@ public int requestFusion(int mode) { return NONE; }...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableIgnoreElements.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.flowable; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.internal.fuseable.QueueSubscription; @@ -72,6 +73,7 @@ public boolean offer(T v1, T v2) { throw new UnsupportedOperationException("Should...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableMap.java
@@ -14,6 +14,7 @@ package io.reactivex.internal.operators.flowable; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.functions.Function; @@ -72,6 +73,7 @@ public int requestFusion(int mode) { return transitiveBoundaryFusion(mode); } + @...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableObserveOn.java
@@ -15,6 +15,7 @@ import java.util.concurrent.atomic.AtomicLong; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.Scheduler; @@ -457,6 +458,7 @@ void runBackfused() { } } + @Nullable @Override public T poll() throws Ex...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableOnBackpressureBuffer.java
@@ -15,6 +15,7 @@ import java.util.concurrent.atomic.AtomicLong; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.exceptions.*; @@ -251,6 +252,7 @@ public int requestFusion(int mode) { return NONE; } + @Nullable @Override ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableRange.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.flowable; +import io.reactivex.annotations.Nullable; import org.reactivestreams.Subscriber; import io.reactivex.Flowable; @@ -59,6 +60,7 @@ public final int requestFusion(int mode) { return mode & SYNC; } + @Nullable ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/flowable/FlowableRangeLong.java
@@ -14,6 +14,7 @@ package io.reactivex.internal.operators.flowable; import io.reactivex.Flowable; +import io.reactivex.annotations.Nullable; import io.reactivex.internal.fuseable.ConditionalSubscriber; import io.reactivex.internal.subscriptions.BasicQueueSubscription; import io.reactivex.internal.subscriptions.S...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/maybe/MaybeFlatMapIterableFlowable.java
@@ -16,6 +16,7 @@ import java.util.Iterator; import java.util.concurrent.atomic.AtomicLong; +import io.reactivex.annotations.Nullable; import org.reactivestreams.Subscriber; import io.reactivex.*; @@ -277,6 +278,7 @@ public boolean isEmpty() { return it == null; } + @Nullable ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/maybe/MaybeFlatMapIterableObservable.java
@@ -16,6 +16,7 @@ import java.util.Iterator; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.disposables.Disposable; import io.reactivex.exceptions.Exceptions; import io.reactivex.functions.Function; @@ -187,6 +188,7 @@ public boolean isEmpty() { return it == nu...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/maybe/MaybeMergeArray.java
@@ -16,6 +16,7 @@ import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.atomic.*; +import io.reactivex.annotations.Nullable; import org.reactivestreams.Subscriber; import io.reactivex.*; @@ -107,6 +108,7 @@ public int requestFusion(int mode) { return NONE; } + ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/observable/ObservableDistinct.java
@@ -17,6 +17,7 @@ import java.util.concurrent.Callable; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.exceptions.Exceptions; import io.reactivex.functions.Function; import io.reactivex.internal.disposables.EmptyDisposable; @@ -113,6 +114,7 @@ public int requestFusion(int m...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/observable/ObservableDistinctUntilChanged.java
@@ -14,6 +14,7 @@ package io.reactivex.internal.operators.observable; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.functions.*; import io.reactivex.internal.observers.BasicFuseableObserver; @@ -90,6 +91,7 @@ public int requestFusion(int mode) { return transi...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/observable/ObservableDoAfterNext.java
@@ -15,6 +15,7 @@ import io.reactivex.*; import io.reactivex.annotations.Experimental; +import io.reactivex.annotations.Nullable; import io.reactivex.functions.Consumer; import io.reactivex.internal.observers.BasicFuseableObserver; @@ -65,6 +66,7 @@ public int requestFusion(int mode) { return trans...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/observable/ObservableDoFinally.java
@@ -15,6 +15,7 @@ import io.reactivex.*; import io.reactivex.annotations.Experimental; +import io.reactivex.annotations.Nullable; import io.reactivex.disposables.Disposable; import io.reactivex.exceptions.Exceptions; import io.reactivex.functions.Action; @@ -127,6 +128,7 @@ public boolean isEmpty() { ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/observable/ObservableFilter.java
@@ -14,6 +14,7 @@ package io.reactivex.internal.operators.observable; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.functions.Predicate; import io.reactivex.internal.observers.BasicFuseableObserver; @@ -60,6 +61,7 @@ public int requestFusion(int mode) { retur...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/observable/ObservableFlatMapCompletable.java
@@ -16,6 +16,7 @@ import java.util.concurrent.atomic.AtomicReference; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.disposables.*; import io.reactivex.exceptions.Exceptions; import io.reactivex.functions.Function; @@ -148,6 +149,7 @@ public boolean isDisposed() { ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/observable/ObservableFromArray.java
@@ -14,6 +14,7 @@ package io.reactivex.internal.operators.observable; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.internal.functions.ObjectHelper; import io.reactivex.internal.observers.BasicQueueDisposable; @@ -61,6 +62,7 @@ public int requestFusion(int mode) { ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/observable/ObservableFromIterable.java
@@ -16,6 +16,7 @@ import java.util.Iterator; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.exceptions.Exceptions; import io.reactivex.internal.disposables.EmptyDisposable; import io.reactivex.internal.functions.ObjectHelper; @@ -122,6 +123,7 @@ public int requestFusion(int...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/observable/ObservableMap.java
@@ -15,6 +15,7 @@ package io.reactivex.internal.operators.observable; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.functions.Function; import io.reactivex.internal.functions.ObjectHelper; import io.reactivex.internal.observers.BasicFuseableObserver; @@ -68,6 +69,7 @@ publ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/observable/ObservableObserveOn.java
@@ -14,6 +14,7 @@ package io.reactivex.internal.operators.observable; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.disposables.Disposable; import io.reactivex.exceptions.Exceptions; import io.reactivex.internal.disposables.DisposableHelper; @@ -294,6 +295,7 @@ public int ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/observable/ObservableRange.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.observable; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.internal.observers.BasicIntQueueDisposable; /** @@ -68,6 +69,7 @@ void run() { } } + @Nullable @Override pu...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/observable/ObservableRangeLong.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.observable; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.internal.observers.BasicIntQueueDisposable; public final class ObservableRangeLong extends Observable<Long> { @@ -65,6 +66,7 @@ void run() { } ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/observable/ObservableScalarXMap.java
@@ -17,6 +17,7 @@ import java.util.concurrent.atomic.AtomicInteger; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.exceptions.Exceptions; import io.reactivex.functions.Function; import io.reactivex.internal.disposables.EmptyDisposable; @@ -202,6 +203,7 @@ public boolean off...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/single/SingleFlatMapIterableFlowable.java
@@ -16,6 +16,7 @@ import java.util.Iterator; import java.util.concurrent.atomic.AtomicLong; +import io.reactivex.annotations.Nullable; import org.reactivestreams.Subscriber; import io.reactivex.*; @@ -271,6 +272,7 @@ public boolean isEmpty() { return it == null; } + @Nullable ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/operators/single/SingleFlatMapIterableObservable.java
@@ -16,6 +16,7 @@ import java.util.Iterator; import io.reactivex.*; +import io.reactivex.annotations.Nullable; import io.reactivex.disposables.Disposable; import io.reactivex.exceptions.Exceptions; import io.reactivex.functions.Function; @@ -181,6 +182,7 @@ public boolean isEmpty() { return it == nu...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/queue/MpscLinkedQueue.java
@@ -20,6 +20,7 @@ import java.util.concurrent.atomic.AtomicReference; +import io.reactivex.annotations.Nullable; import io.reactivex.internal.fuseable.SimplePlainQueue; /** @@ -81,6 +82,7 @@ public boolean offer(final T e) { * * @see java.util.Queue#poll() */ + @Nullable @Override ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/queue/SpscArrayQueue.java
@@ -20,6 +20,7 @@ import java.util.concurrent.atomic.*; +import io.reactivex.annotations.Nullable; import io.reactivex.internal.fuseable.SimplePlainQueue; import io.reactivex.internal.util.Pow2; @@ -82,6 +83,7 @@ public boolean offer(E v1, E v2) { return offer(v1) && offer(v2); } + @Nullable...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/queue/SpscLinkedArrayQueue.java
@@ -20,6 +20,7 @@ import java.util.concurrent.atomic.*; +import io.reactivex.annotations.Nullable; import io.reactivex.internal.fuseable.SimplePlainQueue; import io.reactivex.internal.util.Pow2; @@ -121,6 +122,7 @@ private AtomicReferenceArray<Object> lvNext(AtomicReferenceArray<Object> curr) { * <p> ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/subscriptions/DeferredScalarSubscription.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.subscriptions; +import io.reactivex.annotations.Nullable; import org.reactivestreams.Subscriber; /** @@ -156,6 +157,7 @@ public final int requestFusion(int mode) { return NONE; } + @Nullable @Override public final T poll() { ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/subscriptions/EmptySubscription.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.subscriptions; +import io.reactivex.annotations.Nullable; import org.reactivestreams.Subscriber; import io.reactivex.internal.fuseable.QueueSubscription; @@ -66,6 +67,7 @@ public static void complete(Subscriber<?> s) { s.onSubscribe(INSTANCE); s...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/internal/subscriptions/ScalarSubscription.java
@@ -15,6 +15,7 @@ import java.util.concurrent.atomic.AtomicInteger; +import io.reactivex.annotations.Nullable; import org.reactivestreams.Subscriber; import io.reactivex.internal.fuseable.QueueSubscription; @@ -82,6 +83,7 @@ public boolean offer(T v1, T v2) { throw new UnsupportedOperationException("S...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/processors/UnicastProcessor.java
@@ -16,6 +16,7 @@ import io.reactivex.annotations.CheckReturnValue; import java.util.concurrent.atomic.*; +import io.reactivex.annotations.Nullable; import org.reactivestreams.*; import io.reactivex.internal.functions.ObjectHelper; @@ -340,6 +341,7 @@ final class UnicastQueueSubscription extends BasicIntQueueSu...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/main/java/io/reactivex/subjects/UnicastSubject.java
@@ -13,6 +13,7 @@ package io.reactivex.subjects; +import io.reactivex.annotations.Nullable; import io.reactivex.plugins.RxJavaPlugins; import java.util.concurrent.atomic.*; @@ -348,6 +349,7 @@ public int requestFusion(int mode) { return NONE; } + @Nullable @Override ...
true
Other
ReactiveX
RxJava
e5d3b0e1de992719c88766558c4b5ad21a8725ba.json
add nullable annotation to simple queue (fixes #5053) (#5054)
src/test/java/io/reactivex/internal/observers/BasicFuseableObserverTest.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.observers; +import io.reactivex.annotations.Nullable; import org.junit.Test; import io.reactivex.disposables.Disposables; @@ -24,6 +25,7 @@ public class BasicFuseableObserverTest { public void offer() { TestObserver<Integer> to = new TestObserver<In...
true