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
93e5216ac1f352aea78eda14f933d2bf536a6a50.json
Remove fixPom method from build.gradle (#7253) The pom is generated with the reactive-streams scope set to 'compile' by default. To test that this works, the below gradle tasks were run: ./gradlew -PreleaseMode=full cleanGeneratePomFileForMavenPublication generatePomFileForMavenPublication ./gradlew -PreleaseMode...
build.gradle
@@ -191,27 +191,12 @@ checkstyle { apply from: file("gradle/javadoc_cleanup.gradle") -def fixPom() { - // Reactive-Streams as compile dependency - publishing.publications.all { - pom.withXml { - asNode().dependencies."*".findAll() { - it.scope.text() == "runtime" && project.configuration...
false
Other
ReactiveX
RxJava
0792e059237ec804f2992ebd665fd0a65020698c.json
Update env names for release plugin v0.15 (#7247) #7246
.github/workflows/gradle_release.yml
@@ -44,17 +44,17 @@ jobs: env: # Define secrets at https://github.com/ReactiveX/RxJava/settings/secrets/actions # ------------------------------------------------------------------------------ - ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_USER }} - ORG_GRADLE...
false
Other
ReactiveX
RxJava
cea706672d5f44f9be36c6e3914528ce9be86ced.json
3.x: fix typo in FlowableRetryTest.java (#7223) seperate -> separate
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableRetryTest.java
@@ -621,7 +621,7 @@ public void run() { } } - /** Observer for listener on seperate thread. */ + /** Observer for listener on separate thread. */ static final class AsyncSubscriber<T> extends DefaultSubscriber<T> { protected CountDownLatch latch = new CountDownLatch(1);
false
Other
ReactiveX
RxJava
819c377313e1b509cec5183f4c6685a6675b45f6.json
3.x: Cover changes of #7196
src/main/java/io/reactivex/rxjava3/internal/operators/maybe/MaybeZipArray.java
@@ -13,7 +13,6 @@ package io.reactivex.rxjava3.internal.operators.maybe; -import java.util.Arrays; import java.util.Objects; import java.util.concurrent.atomic.*;
true
Other
ReactiveX
RxJava
819c377313e1b509cec5183f4c6685a6675b45f6.json
3.x: Cover changes of #7196
src/main/java/io/reactivex/rxjava3/internal/operators/single/SingleZipArray.java
@@ -13,7 +13,6 @@ package io.reactivex.rxjava3.internal.operators.single; -import java.util.Arrays; import java.util.Objects; import java.util.concurrent.atomic.*;
true
Other
ReactiveX
RxJava
819c377313e1b509cec5183f4c6685a6675b45f6.json
3.x: Cover changes of #7196
src/test/java/io/reactivex/rxjava3/internal/operators/maybe/MaybeZipArrayTest.java
@@ -221,4 +221,21 @@ public void oneSourceOnly() { .test() .assertResult(Arrays.asList(1)); } + + @Test + public void onSuccessAfterDispose() { + AtomicReference<MaybeObserver<? super Integer>> emitter = new AtomicReference<>(); + + TestObserver<List<Object>> to = Maybe.zipArr...
true
Other
ReactiveX
RxJava
819c377313e1b509cec5183f4c6685a6675b45f6.json
3.x: Cover changes of #7196
src/test/java/io/reactivex/rxjava3/internal/operators/single/SingleZipArrayTest.java
@@ -16,10 +16,12 @@ import static org.junit.Assert.*; import java.util.*; +import java.util.concurrent.atomic.AtomicReference; import org.junit.Test; import io.reactivex.rxjava3.core.*; +import io.reactivex.rxjava3.disposables.Disposable; import io.reactivex.rxjava3.exceptions.TestException; import io.react...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/core/Scheduler.java
@@ -91,7 +91,7 @@ public abstract class Scheduler { /** * Value representing whether to use {@link System#nanoTime()}, or default as clock for {@link #now(TimeUnit)} - * and {@link Scheduler.Worker#now(TimeUnit)} + * and {@link Scheduler.Worker#now(TimeUnit)}. * <p> * Associated system p...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelCollect.java
@@ -47,6 +47,8 @@ public ParallelCollect(ParallelFlowable<? extends T> source, @Override public void subscribe(Subscriber<? super C>[] subscribers) { + subscribers = RxJavaPlugins.onSubscribe(this, subscribers); + if (!validate(subscribers)) { return; }
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelConcatMap.java
@@ -19,6 +19,7 @@ import io.reactivex.rxjava3.internal.operators.flowable.FlowableConcatMap; import io.reactivex.rxjava3.internal.util.ErrorMode; import io.reactivex.rxjava3.parallel.ParallelFlowable; +import io.reactivex.rxjava3.plugins.RxJavaPlugins; import java.util.Objects; @@ -55,6 +56,8 @@ public int para...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelDoOnNextTry.java
@@ -48,6 +48,8 @@ public ParallelDoOnNextTry(ParallelFlowable<T> source, Consumer<? super T> onNex @Override public void subscribe(Subscriber<? super T>[] subscribers) { + subscribers = RxJavaPlugins.onSubscribe(this, subscribers); + if (!validate(subscribers)) { return; ...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelFilter.java
@@ -40,6 +40,8 @@ public ParallelFilter(ParallelFlowable<T> source, Predicate<? super T> predicate @Override public void subscribe(Subscriber<? super T>[] subscribers) { + subscribers = RxJavaPlugins.onSubscribe(this, subscribers); + if (!validate(subscribers)) { return; ...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelFilterTry.java
@@ -46,6 +46,8 @@ public ParallelFilterTry(ParallelFlowable<T> source, Predicate<? super T> predic @Override public void subscribe(Subscriber<? super T>[] subscribers) { + subscribers = RxJavaPlugins.onSubscribe(this, subscribers); + if (!validate(subscribers)) { return; ...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelFlatMap.java
@@ -18,6 +18,7 @@ import io.reactivex.rxjava3.functions.Function; import io.reactivex.rxjava3.internal.operators.flowable.FlowableFlatMap; import io.reactivex.rxjava3.parallel.ParallelFlowable; +import io.reactivex.rxjava3.plugins.RxJavaPlugins; /** * Flattens the generated Publishers on each rail. @@ -57,6 +58...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelFlatMapIterable.java
@@ -18,6 +18,7 @@ import io.reactivex.rxjava3.functions.Function; import io.reactivex.rxjava3.internal.operators.flowable.FlowableFlattenIterable; import io.reactivex.rxjava3.parallel.ParallelFlowable; +import io.reactivex.rxjava3.plugins.RxJavaPlugins; /** * Flattens the generated {@link Iterable}s on each rai...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelFromArray.java
@@ -16,6 +16,7 @@ import org.reactivestreams.*; import io.reactivex.rxjava3.parallel.ParallelFlowable; +import io.reactivex.rxjava3.plugins.RxJavaPlugins; /** * Wraps multiple Publishers into a ParallelFlowable which runs them @@ -37,6 +38,8 @@ public int parallelism() { @Override public void subsc...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelFromPublisher.java
@@ -24,6 +24,7 @@ import io.reactivex.rxjava3.internal.subscriptions.SubscriptionHelper; import io.reactivex.rxjava3.internal.util.BackpressureHelper; import io.reactivex.rxjava3.parallel.ParallelFlowable; +import io.reactivex.rxjava3.plugins.RxJavaPlugins; /** * Dispatches the values from upstream in a round r...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelMap.java
@@ -44,6 +44,8 @@ public ParallelMap(ParallelFlowable<T> source, Function<? super T, ? extends R> @Override public void subscribe(Subscriber<? super R>[] subscribers) { + subscribers = RxJavaPlugins.onSubscribe(this, subscribers); + if (!validate(subscribers)) { return; ...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelMapTry.java
@@ -49,6 +49,8 @@ public ParallelMapTry(ParallelFlowable<T> source, Function<? super T, ? extends @Override public void subscribe(Subscriber<? super R>[] subscribers) { + subscribers = RxJavaPlugins.onSubscribe(this, subscribers); + if (!validate(subscribers)) { return; ...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelPeek.java
@@ -66,6 +66,8 @@ public ParallelPeek(ParallelFlowable<T> source, @Override public void subscribe(Subscriber<? super T>[] subscribers) { + subscribers = RxJavaPlugins.onSubscribe(this, subscribers); + if (!validate(subscribers)) { return; }
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelReduce.java
@@ -46,6 +46,8 @@ public ParallelReduce(ParallelFlowable<? extends T> source, Supplier<R> initialS @Override public void subscribe(Subscriber<? super R>[] subscribers) { + subscribers = RxJavaPlugins.onSubscribe(this, subscribers); + if (!validate(subscribers)) { return; ...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelRunOn.java
@@ -49,7 +49,9 @@ public ParallelRunOn(ParallelFlowable<? extends T> parent, } @Override - public void subscribe(final Subscriber<? super T>[] subscribers) { + public void subscribe(Subscriber<? super T>[] subscribers) { + subscribers = RxJavaPlugins.onSubscribe(this, subscribers); + i...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/main/java/io/reactivex/rxjava3/plugins/RxJavaPlugins.java
@@ -112,6 +112,10 @@ public final class RxJavaPlugins { @Nullable static volatile BiFunction<? super Completable, ? super CompletableObserver, ? extends CompletableObserver> onCompletableSubscribe; + @SuppressWarnings("rawtypes") + @Nullable + static volatile BiFunction<? super ParallelFlowable, ? ...
true
Other
ReactiveX
RxJava
22c5e0bfe0ca9a68cd726d23fb696fe56a059a84.json
3.x: Add onSubscribe hook to ParallelFlowable operators (#7191)
src/test/java/io/reactivex/rxjava3/plugins/RxJavaPluginsTest.java
@@ -592,6 +592,61 @@ public void onComplete() { .assertComplete(); } + @SuppressWarnings("rawtypes") + @Test + public void parallelFlowableStart() { + try { + RxJavaPlugins.setOnParallelSubscribe(new BiFunction<ParallelFlowable, Subscriber[], Subscriber[]>() { + ...
true
Other
ReactiveX
RxJava
0cb8978c1d21363eac53299272295567efb13a55.json
Fix the typos (#7178) Co-authored-by: Wayne_Yang <wayne_yang@perfectcorp.com>
src/main/java/io/reactivex/rxjava3/schedulers/Schedulers.java
@@ -367,7 +367,7 @@ public static Scheduler single() { * because such circumstances prevent RxJava from progressing flow-related activities correctly. * If the {@link Executor#execute(Runnable)} or {@link ExecutorService#submit(Callable)} throws, * the {@code RejectedExecutionException} is routed to t...
false
Other
ReactiveX
RxJava
171c84677739d63ef778b8893db845ac7abc81e6.json
3.x: Introduce property rx3.scheduler.use-nanotime (#7169) Issue-Id: #7154 Co-authored-by: Sergej Isbrecht <sergej.isbrecht@gmail.com>
src/main/java/io/reactivex/rxjava3/core/Scheduler.java
@@ -60,8 +60,9 @@ * interface which can grant access to the original or hooked {@code Runnable}, thus, a repeated {@code RxJavaPlugins.onSchedule} * can detect the earlier hook and not apply a new one over again. * <p> - * The default implementation of {@link #now(TimeUnit)} and {@link Worker#now(TimeUnit)} metho...
true
Other
ReactiveX
RxJava
171c84677739d63ef778b8893db845ac7abc81e6.json
3.x: Introduce property rx3.scheduler.use-nanotime (#7169) Issue-Id: #7154 Co-authored-by: Sergej Isbrecht <sergej.isbrecht@gmail.com>
src/main/java/io/reactivex/rxjava3/schedulers/Schedulers.java
@@ -40,6 +40,8 @@ * <li>{@code rx3.single-priority} (int): sets the thread priority of the {@link #single()} {@code Scheduler}, default is {@link Thread#NORM_PRIORITY}</li> * <li>{@code rx3.purge-enabled} (boolean): enables periodic purging of all {@code Scheduler}'s backing thread pools, default is {@code false}</...
true
Other
ReactiveX
RxJava
171c84677739d63ef778b8893db845ac7abc81e6.json
3.x: Introduce property rx3.scheduler.use-nanotime (#7169) Issue-Id: #7154 Co-authored-by: Sergej Isbrecht <sergej.isbrecht@gmail.com>
src/test/java/io/reactivex/rxjava3/core/SchedulerTest.java
@@ -16,10 +16,48 @@ package io.reactivex.rxjava3.core; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; +import org.junit.After; import org.junit.Test; +import java.util.concurrent.TimeUnit; + public class SchedulerTest { + ...
true
Other
ReactiveX
RxJava
005f1553f3089c9c81ff00087e7708185084aa7a.json
3.x: Improve Javadocs style of Schedulers (#7168)
src/main/java/io/reactivex/rxjava3/schedulers/Schedulers.java
@@ -22,24 +22,24 @@ import io.reactivex.rxjava3.plugins.RxJavaPlugins; /** - * Static factory methods for returning standard Scheduler instances. + * Static factory methods for returning standard {@link Scheduler} instances. * <p> * The initial and runtime values of the various scheduler types can be overridden...
true
Other
ReactiveX
RxJava
005f1553f3089c9c81ff00087e7708185084aa7a.json
3.x: Improve Javadocs style of Schedulers (#7168)
src/test/java/io/reactivex/rxjava3/validators/JavadocCodesAndLinks.java
@@ -75,6 +75,11 @@ public void checkConnectableObservable() throws Exception { checkSource("ConnectableObservable", "io.reactivex.rxjava3.observables"); } + @Test + public void checkSchedulers() throws Exception { + checkSource("Schedulers", "io.reactivex.rxjava3.schedulers"); + } + ...
true
Other
ReactiveX
RxJava
dde2c0e7b0435b4195d02699ef4c8f8d666480e2.json
Fix code style
src/main/java/io/reactivex/rxjava3/core/Flowable.java
@@ -12696,10 +12696,12 @@ public final Flowable<T> onBackpressureLatest() { * <dd>{@code onBackpressureReduce} does not operate by default on a particular {@link Scheduler}.</dd> * </dl> * @param reducer the bi-function to call when there is more than one non-emitted value to downstream, - * the ...
true
Other
ReactiveX
RxJava
dde2c0e7b0435b4195d02699ef4c8f8d666480e2.json
Fix code style
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/AbstractBackpressureThrottlingSubscriber.java
@@ -16,7 +16,6 @@ import io.reactivex.rxjava3.core.FlowableSubscriber; import io.reactivex.rxjava3.internal.subscriptions.SubscriptionHelper; import io.reactivex.rxjava3.internal.util.BackpressureHelper; -import org.reactivestreams.Publisher; import org.reactivestreams.Subscriber; import org.reactivestreams.Subscr...
true
Other
ReactiveX
RxJava
dde2c0e7b0435b4195d02699ef4c8f8d666480e2.json
Fix code style
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureReduceTest.java
@@ -87,9 +87,9 @@ public void synchronousDrop() { ts.assertValues(1, 2); source.onNext(3); - source.onNext(4);//3 + 4 + 50 == 57 - source.onNext(5);//57 + 5 + 50 == 112 - source.onNext(6);//112 + 6 + 50 == 168 + source.onNext(4); //3 + 4 + 50 == 57 + source.onNext(...
true
Other
ReactiveX
RxJava
e0122a4c264761ae9eaf969740acf17a0678ad7b.json
3.x: Add onBackpressureReduce operator (#7129) * onBackpressureReduce operator added * onBackpressureReduce operator added * onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBa...
src/main/java/io/reactivex/rxjava3/core/Flowable.java
@@ -12707,9 +12707,52 @@ public final Flowable<T> onBackpressureLatest() { @SchedulerSupport(SchedulerSupport.NONE) @NonNull public final Flowable<T> onBackpressureReduce(@NonNull BiFunction<T, T, T> reducer) { + Objects.requireNonNull(reducer, "reducer is null"); return RxJavaPlugins.onA...
true
Other
ReactiveX
RxJava
e0122a4c264761ae9eaf969740acf17a0678ad7b.json
3.x: Add onBackpressureReduce operator (#7129) * onBackpressureReduce operator added * onBackpressureReduce operator added * onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBa...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/AbstractBackpressureThrottlingSubscriber.java
@@ -28,11 +28,12 @@ * Abstract base class for operators that throttle excessive updates from upstream in case if * downstream {@link Subscriber} is not ready to receive updates * - * @param <T> the upstream and downstream value type + * @param <T> the upstream value type + * @param <R> the downstream value type ...
true
Other
ReactiveX
RxJava
e0122a4c264761ae9eaf969740acf17a0678ad7b.json
3.x: Add onBackpressureReduce operator (#7129) * onBackpressureReduce operator added * onBackpressureReduce operator added * onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBa...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureLatest.java
@@ -27,7 +27,7 @@ protected void subscribeActual(Subscriber<? super T> s) { source.subscribe(new BackpressureLatestSubscriber<>(s)); } - static final class BackpressureLatestSubscriber<T> extends AbstractBackpressureThrottlingSubscriber<T> { + static final class BackpressureLatestSubscriber<T> ext...
true
Other
ReactiveX
RxJava
e0122a4c264761ae9eaf969740acf17a0678ad7b.json
3.x: Add onBackpressureReduce operator (#7129) * onBackpressureReduce operator added * onBackpressureReduce operator added * onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBa...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureReduce.java
@@ -13,6 +13,7 @@ package io.reactivex.rxjava3.internal.operators.flowable; +import io.reactivex.rxjava3.annotations.NonNull; import io.reactivex.rxjava3.core.Flowable; import io.reactivex.rxjava3.exceptions.Exceptions; import io.reactivex.rxjava3.functions.BiFunction; @@ -24,23 +25,23 @@ final BiFunctio...
true
Other
ReactiveX
RxJava
e0122a4c264761ae9eaf969740acf17a0678ad7b.json
3.x: Add onBackpressureReduce operator (#7129) * onBackpressureReduce operator added * onBackpressureReduce operator added * onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBa...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureReduceWith.java
@@ -0,0 +1,83 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * <p> + * 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 + * <p> + * http://www.apache.org/licenses/LICENSE-2.0 + * <...
true
Other
ReactiveX
RxJava
e0122a4c264761ae9eaf969740acf17a0678ad7b.json
3.x: Add onBackpressureReduce operator (#7129) * onBackpressureReduce operator added * onBackpressureReduce operator added * onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBa...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureReduceTest.java
@@ -25,7 +25,6 @@ import org.junit.Assert; import org.junit.Test; -import java.io.IOException; import java.util.Random; import java.util.concurrent.TimeUnit; @@ -203,13 +202,13 @@ public void exceptionFromReducer() { PublishProcessor<Integer> source = PublishProcessor.create(); TestSubscriberE...
true
Other
ReactiveX
RxJava
e0122a4c264761ae9eaf969740acf17a0678ad7b.json
3.x: Add onBackpressureReduce operator (#7129) * onBackpressureReduce operator added * onBackpressureReduce operator added * onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBa...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureReduceWithTest.java
@@ -0,0 +1,307 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * <p> + * 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 + * <p> + * http://www.apache.org/licenses/LICENSE-2.0 + * ...
true
Other
ReactiveX
RxJava
7741c59fd05196d40b5a6214314842552290c156.json
3.x: Add onBackpressureReduce operator (#7124) * onBackpressureReduce operator added * onBackpressureReduce operator added * onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBa...
src/main/java/io/reactivex/rxjava3/core/Flowable.java
@@ -12676,6 +12676,40 @@ public final Flowable<T> onBackpressureLatest() { return RxJavaPlugins.onAssembly(new FlowableOnBackpressureLatest<>(this)); } + /** + * Reduces a sequence of two not emitted values via a function into a single value if the downstream is not ready to receive + * new i...
true
Other
ReactiveX
RxJava
7741c59fd05196d40b5a6214314842552290c156.json
3.x: Add onBackpressureReduce operator (#7124) * onBackpressureReduce operator added * onBackpressureReduce operator added * onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBa...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/AbstractBackpressureThrottlingSubscriber.java
@@ -0,0 +1,163 @@ +/** + * 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
7741c59fd05196d40b5a6214314842552290c156.json
3.x: Add onBackpressureReduce operator (#7124) * onBackpressureReduce operator added * onBackpressureReduce operator added * onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBa...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureLatest.java
@@ -13,13 +13,8 @@ package io.reactivex.rxjava3.internal.operators.flowable; -import java.util.concurrent.atomic.*; - -import org.reactivestreams.*; - -import io.reactivex.rxjava3.core.*; -import io.reactivex.rxjava3.internal.subscriptions.SubscriptionHelper; -import io.reactivex.rxjava3.internal.util.Backpressure...
true
Other
ReactiveX
RxJava
7741c59fd05196d40b5a6214314842552290c156.json
3.x: Add onBackpressureReduce operator (#7124) * onBackpressureReduce operator added * onBackpressureReduce operator added * onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBa...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureReduce.java
@@ -0,0 +1,68 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * <p> + * 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 + * <p> + * http://www.apache.org/licenses/LICENSE-2.0 + * <...
true
Other
ReactiveX
RxJava
7741c59fd05196d40b5a6214314842552290c156.json
3.x: Add onBackpressureReduce operator (#7124) * onBackpressureReduce operator added * onBackpressureReduce operator added * onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBa...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureLatestTest.java
@@ -133,6 +133,12 @@ public void onNext(Integer t) { int n = ts.values().size(); System.out.println("testAsynchronousDrop -> " + n); Assert.assertTrue("All events received?", n < m); + int previous = 0; + for (Integer current : ts.values()) { + Assert.assertTrue("The ...
true
Other
ReactiveX
RxJava
7741c59fd05196d40b5a6214314842552290c156.json
3.x: Add onBackpressureReduce operator (#7124) * onBackpressureReduce operator added * onBackpressureReduce operator added * onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBackpressureReduce operator added * 3.x: onBa...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureReduceTest.java
@@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * <p> + * 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 + * <p> + * http://www.apache.org/licenses/LICENSE-2.0 + * ...
true
Other
ReactiveX
RxJava
c573219f520c30583f8a62f9c996c6c17b2de447.json
3.x: Improve Javadocs of Connectable sources (#7127)
src/main/java/io/reactivex/rxjava3/flowables/ConnectableFlowable.java
@@ -16,7 +16,7 @@ import java.util.Objects; import java.util.concurrent.TimeUnit; -import org.reactivestreams.Subscriber; +import org.reactivestreams.*; import io.reactivex.rxjava3.annotations.*; import io.reactivex.rxjava3.core.*; @@ -37,9 +37,9 @@ * <img width="640" height="510" src="https://github.com/Reac...
true
Other
ReactiveX
RxJava
c573219f520c30583f8a62f9c996c6c17b2de447.json
3.x: Improve Javadocs of Connectable sources (#7127)
src/main/java/io/reactivex/rxjava3/observables/ConnectableObservable.java
@@ -35,19 +35,18 @@ * <img width="640" height="510" src="https://github.com/ReactiveX/RxJava/wiki/images/rx-operators/publishConnect.v3.png" alt=""> * <p> * When the upstream terminates, the {@code ConnectableObservable} remains in this terminated state and, - * depending on the actual underlying implementation, ...
true
Other
ReactiveX
RxJava
c573219f520c30583f8a62f9c996c6c17b2de447.json
3.x: Improve Javadocs of Connectable sources (#7127)
src/test/java/io/reactivex/rxjava3/validators/JavadocCodesAndLinks.java
@@ -65,6 +65,16 @@ public void checkCompositeDisposable() throws Exception { checkSource("CompositeDisposable", "io.reactivex.rxjava3.disposables"); } + @Test + public void checkConnectableFlowable() throws Exception { + checkSource("ConnectableFlowable", "io.reactivex.rxjava3.flowables"); ...
true
Other
ReactiveX
RxJava
7e7b223ccf4af4ef594677f04e731998914190b9.json
3.x: Improve error messages in the test consumers (#7126) * 3.x: Improve error reporting in the test consumers * Verify assertValueAt with negative index
src/main/java/io/reactivex/rxjava3/observers/BaseTestConsumer.java
@@ -228,7 +228,7 @@ public final U assertNoErrors() { */ @NonNull public final U assertError(@NonNull Throwable error) { - return assertError(Functions.equalsWith(error)); + return assertError(Functions.equalsWith(error), true); } /** @@ -240,7 +240,7 @@ public final U assertEr...
true
Other
ReactiveX
RxJava
7e7b223ccf4af4ef594677f04e731998914190b9.json
3.x: Improve error messages in the test consumers (#7126) * 3.x: Improve error reporting in the test consumers * Verify assertValueAt with negative index
src/test/java/io/reactivex/rxjava3/observers/TestObserverTest.java
@@ -21,6 +21,7 @@ import java.util.concurrent.TimeUnit; import org.junit.Test; +import org.junit.function.ThrowingRunnable; import org.mockito.InOrder; import org.reactivestreams.Subscriber; @@ -39,6 +40,10 @@ public class TestObserverTest extends RxJavaTest { + static void assertThrowsWithMessage(Strin...
true
Other
ReactiveX
RxJava
7e7b223ccf4af4ef594677f04e731998914190b9.json
3.x: Improve error messages in the test consumers (#7126) * 3.x: Improve error reporting in the test consumers * Verify assertValueAt with negative index
src/test/java/io/reactivex/rxjava3/subscribers/TestSubscriberTest.java
@@ -22,6 +22,7 @@ import java.util.concurrent.atomic.AtomicBoolean; import org.junit.Test; +import org.junit.function.ThrowingRunnable; import org.mockito.InOrder; import org.reactivestreams.*; @@ -1391,9 +1392,13 @@ public void assertValuePredicateMatch() { }); } + static void assertThrowsWi...
true
Other
ReactiveX
RxJava
3d1669da006bd494f7fce7f3b3d6274fa5ba6921.json
3.x: Update badge in README.md (#7115)
README.md
@@ -1,6 +1,6 @@ # RxJava: Reactive Extensions for the JVM -<a href='https://travis-ci.com/ReactiveX/RxJava/builds'><img src='https://travis-ci.com/ReactiveX/RxJava.svg?branch=3.x'></a> +<a href='https://github.com/ReactiveX/RxJava/actions?query=workflow%3ASnapshot'><img src='https://github.com/ReactiveX/RxJava/workf...
false
Other
ReactiveX
RxJava
fb45ce83c4e08d46b754d5a86efcc5ae38f84e4c.json
Fix minor typos of @{code
src/main/java/io/reactivex/rxjava3/core/Flowable.java
@@ -14677,7 +14677,7 @@ public final <U> Flowable<T> sample(@NonNull Publisher<U> sampler, boolean emitL /** * Returns a {@code Flowable} that emits the first value emitted by the current {@code Flowable}, then emits one value * for each subsequent value emitted by the current {@code Flowable}. Each em...
true
Other
ReactiveX
RxJava
fb45ce83c4e08d46b754d5a86efcc5ae38f84e4c.json
Fix minor typos of @{code
src/main/java/io/reactivex/rxjava3/core/Observable.java
@@ -12204,7 +12204,7 @@ public final <U> Observable<T> sample(@NonNull ObservableSource<U> sampler, bool /** * Returns an {@code Observable} that emits the first value emitted by the current {@code Observable}, then emits one value * for each subsequent value emitted by the current {@code Observable}. ...
true
Other
ReactiveX
RxJava
82a218a5e0bb7f8788e4e6b0b54e4de9cd28e9ea.json
Clarify the documentation for scan operators (#7093) * Clarify the documentation for scan operators * Fix typo Co-authored-by: David Andrews <dta@duolingo.com>
src/main/java/io/reactivex/rxjava3/core/Flowable.java
@@ -14675,10 +14675,9 @@ public final <U> Flowable<T> sample(@NonNull Publisher<U> sampler, boolean emitL } /** - * Returns a {@code Flowable} that applies a specified accumulator function to the first item emitted by the current - * {@code Flowable}, then feeds the result of that function along wit...
true
Other
ReactiveX
RxJava
82a218a5e0bb7f8788e4e6b0b54e4de9cd28e9ea.json
Clarify the documentation for scan operators (#7093) * Clarify the documentation for scan operators * Fix typo Co-authored-by: David Andrews <dta@duolingo.com>
src/main/java/io/reactivex/rxjava3/core/Observable.java
@@ -12202,10 +12202,9 @@ public final <U> Observable<T> sample(@NonNull ObservableSource<U> sampler, bool } /** - * Returns an {@code Observable} that applies a specified accumulator function to the first item emitted by the current - * {@code Observable}, then feeds the result of that function alon...
true
Other
ReactiveX
RxJava
0668d042b47d3585f856af831bd3b1e1742c080f.json
3.x: Fix Flowable.concatMap backpressure w/ scalars (#7089)
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableConcatMap.java
@@ -13,7 +13,7 @@ package io.reactivex.rxjava3.internal.operators.flowable; import java.util.Objects; -import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.atomic.*; import org.reactivestreams.*; @@ -308,7 +308,7 @@ void drain() { continue; ...
true
Other
ReactiveX
RxJava
0668d042b47d3585f856af831bd3b1e1742c080f.json
3.x: Fix Flowable.concatMap backpressure w/ scalars (#7089)
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableConcatMapScheduler.java
@@ -345,7 +345,7 @@ public void run() { continue; } else { active = true; - inner.setSubscription(new WeakScalarSubscription<>(vr, inner)); + inner.setSubscription...
true
Other
ReactiveX
RxJava
0668d042b47d3585f856af831bd3b1e1742c080f.json
3.x: Fix Flowable.concatMap backpressure w/ scalars (#7089)
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableConcatMapSchedulerTest.java
@@ -66,6 +66,56 @@ public Publisher<? extends Object> apply(String v) .assertResult("RxSingleScheduler"); } + @Test + public void innerScalarRequestRace() { + Flowable<Integer> just = Flowable.just(1); + int n = 1000; + for (int i = 0; i < TestHelper.RACE_DEFAULT_LOOPS; i++) {...
true
Other
ReactiveX
RxJava
0668d042b47d3585f856af831bd3b1e1742c080f.json
3.x: Fix Flowable.concatMap backpressure w/ scalars (#7089)
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableConcatMapTest.java
@@ -24,18 +24,18 @@ import io.reactivex.rxjava3.core.*; import io.reactivex.rxjava3.exceptions.*; import io.reactivex.rxjava3.functions.*; -import io.reactivex.rxjava3.internal.operators.flowable.FlowableConcatMap.WeakScalarSubscription; -import io.reactivex.rxjava3.processors.UnicastProcessor; +import io.reactivex....
true
Other
ReactiveX
RxJava
ca222c2909bd8e1958c1241df4412bea1fbc543d.json
Add missing `@Test` annotation (#6990)
src/test/java/io/reactivex/rxjava3/subjects/ReplaySubjectTest.java
@@ -797,6 +797,7 @@ public void getValuesUnbounded() { } + @Test public void createInvalidCapacity() { try { ReplaySubject.create(-99);
false
Other
ReactiveX
RxJava
b47783e3186f83be6a87257a2d13c9619bccaa42.json
Fix trailing spaces.
src/main/java/io/reactivex/rxjava3/internal/fuseable/FuseToFlowable.java
@@ -21,7 +21,7 @@ * the operator goes from Flowable to some other reactive type and then the sequence calls * for toFlowable again: * <pre> - * {@code + * {@code * Single<Integer> single = Flowable.range(1, 10).reduce((a, b) -> a + b); * Flowable<Integer> flowable = single.toFlowable(); * }
true
Other
ReactiveX
RxJava
b47783e3186f83be6a87257a2d13c9619bccaa42.json
Fix trailing spaces.
src/main/java/io/reactivex/rxjava3/internal/fuseable/FuseToMaybe.java
@@ -21,7 +21,7 @@ * the operator goes from Maybe to some other reactive type and then the sequence calls * for toMaybe again: * <pre> - * {@code + * {@code * Single<Integer> single = Maybe.just(1).isEmpty(); * Maybe<Integer> maybe = single.toMaybe(); * }
true
Other
ReactiveX
RxJava
b47783e3186f83be6a87257a2d13c9619bccaa42.json
Fix trailing spaces.
src/main/java/io/reactivex/rxjava3/internal/schedulers/SchedulerWhen.java
@@ -53,7 +53,7 @@ * thread pool: * * <pre> - * {@code + * {@code * Scheduler limitScheduler = Schedulers.computation().when(workers -> { * // use merge max concurrent to limit the number of concurrent * // callbacks two at a time @@ -73,7 +73,7 @@ * to the second. * * <pre> - * {@code + * {@code ...
true
Other
ReactiveX
RxJava
b47783e3186f83be6a87257a2d13c9619bccaa42.json
Fix trailing spaces.
src/test/java/io/reactivex/rxjava3/observers/SerializedObserverTest.java
@@ -1042,7 +1042,8 @@ public void run() { } }; - TestHelper.race(r1, r2); + TestHelper.race(r1, r2); + to.awaitDone(5, TimeUnit.SECONDS) .assertError(ex) .assertNotComplete();
true
Other
ReactiveX
RxJava
c4780977c766f301d38b99e304edf492e66c7631.json
3.x: Fix Observable.flatMap with maxConcurrency hangs (#6946) * 3.x: Fix Observable.flatMap with maxConcurrency hangs * Verify Flowable
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableFlatMap.java
@@ -318,6 +318,7 @@ void drainLoop() { if (checkTerminate()) { return; } + int innerCompleted = 0; SimplePlainQueue<U> svq = queue; if (svq != null) { @@ -333,9 +334,18 @@ void drainLoop() { ...
true
Other
ReactiveX
RxJava
c4780977c766f301d38b99e304edf492e66c7631.json
3.x: Fix Observable.flatMap with maxConcurrency hangs (#6946) * 3.x: Fix Observable.flatMap with maxConcurrency hangs * Verify Flowable
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFlatMapTest.java
@@ -1478,4 +1478,28 @@ public void innerCompletesAfterOnNextInDrainThenCancels() { .requestMore(1) .assertValuesOnly(1); } + + @Test(timeout = 5000) + public void mixedScalarAsync() { + for (int i = 0; i < TestHelper.RACE_DEFAULT_LOOPS; i++) { + Flowable + .rang...
true
Other
ReactiveX
RxJava
c4780977c766f301d38b99e304edf492e66c7631.json
3.x: Fix Observable.flatMap with maxConcurrency hangs (#6946) * 3.x: Fix Observable.flatMap with maxConcurrency hangs * Verify Flowable
src/test/java/io/reactivex/rxjava3/internal/operators/observable/ObservableFlatMapTest.java
@@ -1240,4 +1240,28 @@ public void fusedInnerCrash2() { to.assertFailure(TestException.class, 1, 2); } + + @Test(timeout = 5000) + public void mixedScalarAsync() { + for (int i = 0; i < TestHelper.RACE_DEFAULT_LOOPS; i++) { + Observable + .range(0, 20) + .fl...
true
Other
ReactiveX
RxJava
73604160a227166ba0d107438c6a321c5ecfc718.json
Remove unused imports
src/main/java/io/reactivex/rxjava3/core/Completable.java
@@ -18,7 +18,6 @@ import org.reactivestreams.*; import io.reactivex.rxjava3.annotations.*; -import io.reactivex.rxjava3.core.Observable; import io.reactivex.rxjava3.disposables.Disposable; import io.reactivex.rxjava3.exceptions.*; import io.reactivex.rxjava3.functions.*;
true
Other
ReactiveX
RxJava
73604160a227166ba0d107438c6a321c5ecfc718.json
Remove unused imports
src/main/java/io/reactivex/rxjava3/core/Maybe.java
@@ -20,7 +20,6 @@ import org.reactivestreams.*; import io.reactivex.rxjava3.annotations.*; -import io.reactivex.rxjava3.core.Observable; import io.reactivex.rxjava3.disposables.Disposable; import io.reactivex.rxjava3.exceptions.*; import io.reactivex.rxjava3.functions.*;
true
Other
ReactiveX
RxJava
fd496db9a64320fcb9f9b4d110018bcd41e46c82.json
Fix typos in Backpressure.md (#6927) Fix lower case generic type declaration in reactive pull backpressure's code sample Fix typo in the Further reading section
docs/Backpressure.md
@@ -128,7 +128,7 @@ someObservable.subscribe(new Subscriber<T>() { } @Override - public void onNext(t n) { + public void onNext(T n) { // do something with the emitted item "n" // request another item: request(1); @@ -169,7 +169,7 @@ If you do not apply any of these operators to a...
false
Other
ReactiveX
RxJava
1c17f3669bcfc7651925f7dc977a9561ace84d7d.json
Update 2.x maintenance date, include 3.0 wiki
README.md
@@ -22,10 +22,11 @@ It extends the [observer pattern](http://en.wikipedia.org/wiki/Observer_pattern) Learn more about RxJava in general on the <a href="https://github.com/ReactiveX/RxJava/wiki">Wiki Home</a>. +:information_source: Please read the [What's different in 3.0](https://github.com/ReactiveX/RxJava/wiki/W...
false
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/core/Completable.java
@@ -981,7 +981,7 @@ private static Completable merge0(@NonNull Publisher<@NonNull ? extends Completa @SafeVarargs public static Completable mergeArrayDelayError(@NonNull CompletableSource... sources) { Objects.requireNonNull(sources, "sources is null"); - return RxJavaPlugins.onAssembly(new Co...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/functions/Functions.java
@@ -281,13 +281,8 @@ public static <T> Predicate<T> equalsWith(T value) { return new EqualsPredicate<>(value); } - enum HashSetCallable implements Supplier<Set<Object>>, Callable<Set<Object>> { + enum HashSetSupplier implements Supplier<Set<Object>> { INSTANCE; - @Override - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/observers/FutureObserver.java
@@ -128,22 +128,15 @@ public void onNext(T t) { @Override public void onError(Throwable t) { if (error == null) { - error = t; - - for (;;) { - Disposable a = upstream.get(); - if (a == this || a == DisposableHelper.DISPOSED) { - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/observers/InnerQueuedObserver.java
@@ -114,8 +114,4 @@ public void setDone() { public SimpleQueue<T> queue() { return queue; } - - public int fusionMode() { - return fusionMode; - } }
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/observers/QueueDrainObserver.java
@@ -57,10 +57,6 @@ public final boolean enter() { return wip.getAndIncrement() == 0; } - public final boolean fastEnter() { - return wip.get() == 0 && wip.compareAndSet(0, 1); - } - protected final void fastPathEmit(U value, boolean delayError, Disposable dispose) { final Obse...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/completable/CompletableConcat.java
@@ -182,9 +182,8 @@ void drain() { boolean empty = cs == null; if (d && empty) { - if (once.compareAndSet(false, true)) { - downstream.onComplete(); - } + // errors never set done ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/completable/CompletableMergeArray.java
@@ -86,9 +86,8 @@ public void onError(Throwable e) { @Override public void onComplete() { if (decrementAndGet() == 0) { - if (once.compareAndSet(false, true)) { - downstream.onComplete(); - } + // errors don't decrement this ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/completable/CompletableMergeArrayDelayError.java
@@ -19,11 +19,11 @@ import io.reactivex.rxjava3.disposables.*; import io.reactivex.rxjava3.internal.util.AtomicThrowable; -public final class CompletableMergeDelayErrorArray extends Completable { +public final class CompletableMergeArrayDelayError extends Completable { final CompletableSource[] sources; - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/completable/CompletableMergeDelayErrorIterable.java
@@ -20,7 +20,7 @@ import io.reactivex.rxjava3.core.*; import io.reactivex.rxjava3.disposables.CompositeDisposable; import io.reactivex.rxjava3.exceptions.Exceptions; -import io.reactivex.rxjava3.internal.operators.completable.CompletableMergeDelayErrorArray.*; +import io.reactivex.rxjava3.internal.operators.completa...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/completable/CompletableMergeIterable.java
@@ -128,9 +128,8 @@ public void onError(Throwable e) { @Override public void onComplete() { if (wip.decrementAndGet() == 0) { - if (compareAndSet(false, true)) { - downstream.onComplete(); - } + // errors don't decrement wip ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/BlockingFlowableNext.java
@@ -99,11 +99,8 @@ private boolean moveToNext() { if (nextNotification.isOnComplete()) { return false; } - if (nextNotification.isOnError()) { - error = nextNotification.getError(); - throw ExceptionHelper.wrapOr...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableBuffer.java
@@ -133,6 +133,7 @@ public void onError(Throwable t) { RxJavaPlugins.onError(t); return; } + buffer = null; done = true; downstream.onError(t); } @@ -145,8 +146,9 @@ public void onComplete() { done = true; ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableCombineLatest.java
@@ -13,7 +13,6 @@ package io.reactivex.rxjava3.internal.operators.flowable; -import java.util.Iterator; import java.util.Objects; import java.util.concurrent.atomic.*; @@ -73,75 +72,46 @@ public FlowableCombineLatest(@NonNull Iterable<? extends Publisher<? extends T>> @SuppressWarnings("unchecked") @...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableConcatMap.java
@@ -195,35 +195,19 @@ void subscribeActual() { @Override public void onError(Throwable t) { - if (errors.tryAddThrowableOrReport(t)) { - inner.cancel(); - - if (getAndIncrement() == 0) { - errors.tryTerminateConsumer(downstream); - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableConcatMapEager.java
@@ -318,7 +318,7 @@ public void drain() { e++; - inner.requestOne(); + inner.request(1L); } if (e == r) {
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableConcatMapScheduler.java
@@ -204,9 +204,13 @@ public void onError(Throwable t) { } } + boolean tryEnter() { + return get() == 0 && compareAndSet(0, 1); + } + @Override public void innerNext(R value) { - if (get() == 0 && compareAndSet(0, 1)) { + if (tryEnt...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFlatMap.java
@@ -150,14 +150,14 @@ public void onNext(T t) { if (u != null) { tryEmitScalar(u); } else { - if (maxConcurrency != Integer.MAX_VALUE && !cancelled - && ++scalarEmitted == scalarLimit) { + if (maxConc...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFlatMapCompletable.java
@@ -138,9 +138,7 @@ public void onError(Throwable e) { cancelled = true; upstream.cancel(); set.dispose(); - if (getAndSet(0) > 0) { - errors.tryTerminateConsumer(downstream); - } + ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFlatMapCompletableCompletable.java
@@ -146,9 +146,7 @@ public void onError(Throwable e) { disposed = true; upstream.cancel(); set.dispose(); - if (getAndSet(0) > 0) { - errors.tryTerminateConsumer(downstream); - } + ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFlatMapMaybe.java
@@ -174,7 +174,7 @@ void innerSuccess(InnerObserver inner, R value) { SpscLinkedArrayQueue<R> q = queue.get(); - if (d && (q == null || q.isEmpty())) { + if (checkTerminate(d, q)) { errors.tryTerminateConsumer(downstream); ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFlatMapSingle.java
@@ -205,16 +205,15 @@ void innerSuccess(InnerObserver inner, R value) { } SpscLinkedArrayQueue<R> getOrCreateQueue() { - for (;;) { - SpscLinkedArrayQueue<R> current = queue.get(); - if (current != null) { - return current; - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFromIterable.java
@@ -73,14 +73,14 @@ public static <T> void subscribe(Subscriber<? super T> s, Iterator<? extends T> abstract static class BaseRangeSubscription<T> extends BasicQueueSubscription<T> { private static final long serialVersionUID = -2252972430506210021L; - Iterator<? extends T> it; + Iterator<...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableGroupJoin.java
@@ -330,7 +330,7 @@ else if (mode == LEFT_CLOSE) { up.onComplete(); } } - else if (mode == RIGHT_CLOSE) { + else { LeftRightEndSubscriber end = (LeftRightEndSubscriber)val; ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableJoin.java
@@ -339,7 +339,7 @@ else if (mode == LEFT_CLOSE) { lefts.remove(end.index); disposables.remove(end); } - else if (mode == RIGHT_CLOSE) { + else { LeftRightEndSubscriber end = (LeftRightE...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableObserveOn.java
@@ -350,15 +350,10 @@ void runSync() { return; } - int w = get(); - if (missed == w) { - produced = e; - missed = addAndGet(-missed); - if (missed == 0) { - break; - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowablePublish.java
@@ -60,14 +60,6 @@ public Publisher<T> source() { return source; } - /** - * The internal buffer size of this FlowablePublishAlt operator. - * @return The internal buffer size of this FlowablePublishAlt operator. - */ - public int publishBufferSize() { - return bufferSize; - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableReplay.java
@@ -246,10 +246,8 @@ public void connect(Consumer<? super Disposable> connection) { final AtomicInteger management; - /** Contains the maximum element index the child Subscribers requested so far. Accessed while emitting is true. */ - long maxChildRequested; - /** Counts the outstandin...
true