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
40087e95cfd4e24bbbe395b3b0cc099fe999e006.json
3.x: remove getValues() from some subjects/processors (#6516)
src/main/java/io/reactivex/processors/BehaviorProcessor.java
@@ -13,7 +13,6 @@ package io.reactivex.processors; -import java.lang.reflect.Array; import java.util.concurrent.atomic.*; import java.util.concurrent.locks.*; @@ -95,8 +94,7 @@ * <p> * This {@code BehaviorProcessor} supports the standard state-peeking methods {@link #hasComplete()}, {@link #hasThrowable()}...
true
Other
ReactiveX
RxJava
40087e95cfd4e24bbbe395b3b0cc099fe999e006.json
3.x: remove getValues() from some subjects/processors (#6516)
src/main/java/io/reactivex/subjects/AsyncSubject.java
@@ -13,13 +13,10 @@ package io.reactivex.subjects; -import io.reactivex.annotations.Nullable; -import io.reactivex.annotations.NonNull; -import java.util.Arrays; import java.util.concurrent.atomic.AtomicReference; import io.reactivex.Observer; -import io.reactivex.annotations.CheckReturnValue; +import io.react...
true
Other
ReactiveX
RxJava
40087e95cfd4e24bbbe395b3b0cc099fe999e006.json
3.x: remove getValues() from some subjects/processors (#6516)
src/main/java/io/reactivex/subjects/BehaviorSubject.java
@@ -13,14 +13,11 @@ package io.reactivex.subjects; -import io.reactivex.annotations.CheckReturnValue; -import io.reactivex.annotations.Nullable; -import io.reactivex.annotations.NonNull; -import java.lang.reflect.Array; import java.util.concurrent.atomic.AtomicReference; import java.util.concurrent.locks.*; i...
true
Other
ReactiveX
RxJava
40087e95cfd4e24bbbe395b3b0cc099fe999e006.json
3.x: remove getValues() from some subjects/processors (#6516)
src/test/java/io/reactivex/processors/SerializedProcessorTest.java
@@ -38,7 +38,6 @@ public void testBasic() { ts.assertValue("hello"); } - @SuppressWarnings("deprecation") @Test public void testAsyncSubjectValueRelay() { AsyncProcessor<Integer> async = AsyncProcessor.create(); @@ -52,13 +51,8 @@ public void testAsyncSubjectValueRelay() { ...
true
Other
ReactiveX
RxJava
40087e95cfd4e24bbbe395b3b0cc099fe999e006.json
3.x: remove getValues() from some subjects/processors (#6516)
src/test/java/io/reactivex/subjects/SerializedSubjectTest.java
@@ -39,7 +39,6 @@ public void testBasic() { to.assertValue("hello"); } - @SuppressWarnings("deprecation") @Test public void testAsyncSubjectValueRelay() { AsyncSubject<Integer> async = AsyncSubject.create(); @@ -53,13 +52,8 @@ public void testAsyncSubjectValueRelay() { ass...
true
Other
ReactiveX
RxJava
837ca6b6f18b9ce5948705ae68149642c32aba99.json
3.x: Adjust infrastructure version markers (#6421) * 3.x: Adjust infrastructure version markers * Do not update the /javadoc yet. * Update "RxJava 2" to "RxJava 3"
.github/ISSUE_TEMPLATE.md
@@ -1,10 +1,10 @@ Thanks for using RxJava but before you post an issue, please consider the following points: - - [ ] Please include the library version number, including the minor and patch version, in the issue text. In addition, if you'd include the major version in the title (such as `2.x`) that would be great....
true
Other
ReactiveX
RxJava
837ca6b6f18b9ce5948705ae68149642c32aba99.json
3.x: Adjust infrastructure version markers (#6421) * 3.x: Adjust infrastructure version markers * Do not update the /javadoc yet. * Update "RxJava 2" to "RxJava 3"
CHANGES.md
@@ -1,1295 +1,5 @@ -# RxJava 2 Releases # +# RxJava 3 Releases # The changelog of version 1.x can be found at https://github.com/ReactiveX/RxJava/blob/1.x/CHANGES.md +The changelog of version 2.x can be found at https://github.com/ReactiveX/RxJava/blob/2.x/CHANGES.md -### Version 2.2.7 - February 23, 2019 ([Maven]...
true
Other
ReactiveX
RxJava
837ca6b6f18b9ce5948705ae68149642c32aba99.json
3.x: Adjust infrastructure version markers (#6421) * 3.x: Adjust infrastructure version markers * Do not update the /javadoc yet. * Update "RxJava 2" to "RxJava 3"
CONTRIBUTING.md
@@ -1,12 +1,12 @@ -# Contributing to RxJava 2.x +# Contributing to RxJava 3.x -If you would like to contribute code you can do so through GitHub by forking the repository and sending a pull request targeting the branch `2.x`. +If you would like to contribute code you can do so through GitHub by forking the repository...
true
Other
ReactiveX
RxJava
837ca6b6f18b9ce5948705ae68149642c32aba99.json
3.x: Adjust infrastructure version markers (#6421) * 3.x: Adjust infrastructure version markers * Do not update the /javadoc yet. * Update "RxJava 2" to "RxJava 3"
DESIGN.md
@@ -1,6 +1,6 @@ -## RxJava v2 Design +## RxJava v3 Design -This document explains the terminology, principles, contracts, and other aspects of the design of RxJava v2. +This document explains the terminology, principles, contracts, and other aspects of the design of RxJava v3. Its intended audience is the implemente...
true
Other
ReactiveX
RxJava
837ca6b6f18b9ce5948705ae68149642c32aba99.json
3.x: Adjust infrastructure version markers (#6421) * 3.x: Adjust infrastructure version markers * Do not update the /javadoc yet. * Update "RxJava 2" to "RxJava 3"
README.md
@@ -1,26 +1,31 @@ # RxJava: Reactive Extensions for the JVM -<a href='https://travis-ci.org/ReactiveX/RxJava/builds'><img src='https://travis-ci.org/ReactiveX/RxJava.svg?branch=2.x'></a> -[![codecov.io](http://codecov.io/github/ReactiveX/RxJava/coverage.svg?branch=2.x)](https://codecov.io/gh/ReactiveX/RxJava/branch/...
true
Other
ReactiveX
RxJava
837ca6b6f18b9ce5948705ae68149642c32aba99.json
3.x: Adjust infrastructure version markers (#6421) * 3.x: Adjust infrastructure version markers * Do not update the /javadoc yet. * Update "RxJava 2" to "RxJava 3"
build.gradle
@@ -15,7 +15,7 @@ buildscript { } } -group = "io.reactivex.rxjava2" +group = "io.reactivex.rxjava3" ext.githubProjectName = "rxjava" version = project.properties["release.version"] @@ -131,7 +131,7 @@ jar { instruction "Bundle-DocURL", "https://github.com/ReactiveX/RxJava" instruction "Impor...
true
Other
ReactiveX
RxJava
837ca6b6f18b9ce5948705ae68149642c32aba99.json
3.x: Adjust infrastructure version markers (#6421) * 3.x: Adjust infrastructure version markers * Do not update the /javadoc yet. * Update "RxJava 2" to "RxJava 3"
gradle.properties
@@ -1,2 +1,2 @@ release.scope=patch -release.version=2.2.0-SNAPSHOT +release.version=3.0.0-SNAPSHOT
true
Other
ReactiveX
RxJava
837ca6b6f18b9ce5948705ae68149642c32aba99.json
3.x: Adjust infrastructure version markers (#6421) * 3.x: Adjust infrastructure version markers * Do not update the /javadoc yet. * Update "RxJava 2" to "RxJava 3"
gradle/buildViaTravis.sh
@@ -3,8 +3,8 @@ buildTag="$TRAVIS_TAG" -if [ "$buildTag" != "" ] && [ "${buildTag:0:3}" != "v2." ]; then - echo -e "Wrong tag on the 2.x brach: $buildTag : build stopped" +if [ "$buildTag" != "" ] && [ "${buildTag:0:3}" != "v3." ]; then + echo -e "Wrong tag on the 3.x brach: $buildTag : build stopped" exit...
true
Other
ReactiveX
RxJava
837ca6b6f18b9ce5948705ae68149642c32aba99.json
3.x: Adjust infrastructure version markers (#6421) * 3.x: Adjust infrastructure version markers * Do not update the /javadoc yet. * Update "RxJava 2" to "RxJava 3"
gradle/push_javadoc.sh
@@ -55,42 +55,50 @@ if [ "$buildTag" != "snapshot" ]; then # for releases, add a new directory with the new version # and carefully replace the others + # !!!!!!!!!!!!!!!!!!!!!!!!!!!!! + # enable once 3.x is mainstream + # vvvvvvvvvvvvvvvvvvvvvvvvvvvvv + # 1.) main javadoc # ---------------- # re...
true
Other
ReactiveX
RxJava
6e266af1000083f25dcae9defdcfe41e4ea2b97b.json
Add doOnTerminate to Single/Maybe for consistency (#6379) (#6386)
src/main/java/io/reactivex/Maybe.java
@@ -2892,6 +2892,33 @@ public final Maybe<T> doOnSubscribe(Consumer<? super Disposable> onSubscribe) { )); } + /** + * Returns a Maybe instance that calls the given onTerminate callback + * just before this Maybe completes normally or with an exception. + * <p> + * <img width="640" he...
true
Other
ReactiveX
RxJava
6e266af1000083f25dcae9defdcfe41e4ea2b97b.json
Add doOnTerminate to Single/Maybe for consistency (#6379) (#6386)
src/main/java/io/reactivex/Single.java
@@ -2495,6 +2495,33 @@ public final Single<T> doOnSubscribe(final Consumer<? super Disposable> onSubscr return RxJavaPlugins.onAssembly(new SingleDoOnSubscribe<T>(this, onSubscribe)); } + /** + * Returns a Single instance that calls the given onTerminate callback + * just before this Single c...
true
Other
ReactiveX
RxJava
6e266af1000083f25dcae9defdcfe41e4ea2b97b.json
Add doOnTerminate to Single/Maybe for consistency (#6379) (#6386)
src/main/java/io/reactivex/internal/operators/maybe/MaybeDoOnTerminate.java
@@ -0,0 +1,90 @@ +/** + * 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
6e266af1000083f25dcae9defdcfe41e4ea2b97b.json
Add doOnTerminate to Single/Maybe for consistency (#6379) (#6386)
src/main/java/io/reactivex/internal/operators/single/SingleDoOnTerminate.java
@@ -0,0 +1,78 @@ +/** + * 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
6e266af1000083f25dcae9defdcfe41e4ea2b97b.json
Add doOnTerminate to Single/Maybe for consistency (#6379) (#6386)
src/test/java/io/reactivex/internal/operators/maybe/MaybeDoOnTerminateTest.java
@@ -0,0 +1,124 @@ +/** + * 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
6e266af1000083f25dcae9defdcfe41e4ea2b97b.json
Add doOnTerminate to Single/Maybe for consistency (#6379) (#6386)
src/test/java/io/reactivex/internal/operators/single/SingleDoOnTerminateTest.java
@@ -0,0 +1,96 @@ +/** + * 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
621b8cda977605f91b8620a6e4e34f6c1cc89455.json
Fix bug in CompositeException.getRootCause (#6380) * Fix bug in CompositeException.getRootCause The original code use to be `if (root == null || root == e)`, but apparently after some refactoring it ended up as `if (root == null || cause == root)`, which I believe is a bug. This method should probably be `stati...
src/main/java/io/reactivex/exceptions/CompositeException.java
@@ -280,7 +280,7 @@ public int size() { */ /*private */Throwable getRootCause(Throwable e) { Throwable root = e.getCause(); - if (root == null || cause == root) { + if (root == null || e == root) { return e; } while (true) {
true
Other
ReactiveX
RxJava
621b8cda977605f91b8620a6e4e34f6c1cc89455.json
Fix bug in CompositeException.getRootCause (#6380) * Fix bug in CompositeException.getRootCause The original code use to be `if (root == null || root == e)`, but apparently after some refactoring it ended up as `if (root == null || cause == root)`, which I believe is a bug. This method should probably be `stati...
src/test/java/io/reactivex/exceptions/CompositeExceptionTest.java
@@ -364,7 +364,22 @@ public synchronized Throwable getCause() { } }; CompositeException ex = new CompositeException(throwable); - assertSame(ex, ex.getRootCause(ex)); + assertSame(ex0, ex.getRootCause(ex)); + } + + @Test + public void rootCauseSelf() { + Thro...
true
Other
ReactiveX
RxJava
a85ddd154087f634c2834851acff87a02d39a061.json
2.x: Add interruptible mode to Schedulers.from (#6370)
src/main/java/io/reactivex/internal/schedulers/ExecutorScheduler.java
@@ -22,7 +22,7 @@ import io.reactivex.internal.disposables.*; import io.reactivex.internal.functions.Functions; import io.reactivex.internal.queue.MpscLinkedQueue; -import io.reactivex.internal.schedulers.ExecutorScheduler.ExecutorWorker.BooleanRunnable; +import io.reactivex.internal.schedulers.ExecutorScheduler.Exe...
true
Other
ReactiveX
RxJava
a85ddd154087f634c2834851acff87a02d39a061.json
2.x: Add interruptible mode to Schedulers.from (#6370)
src/main/java/io/reactivex/schedulers/Schedulers.java
@@ -13,13 +13,13 @@ package io.reactivex.schedulers; +import java.util.concurrent.*; + import io.reactivex.Scheduler; -import io.reactivex.annotations.NonNull; +import io.reactivex.annotations.*; import io.reactivex.internal.schedulers.*; import io.reactivex.plugins.RxJavaPlugins; -import java.util.concurrent...
true
Other
ReactiveX
RxJava
a85ddd154087f634c2834851acff87a02d39a061.json
2.x: Add interruptible mode to Schedulers.from (#6370)
src/test/java/io/reactivex/schedulers/ExecutorSchedulerInterruptibleTest.java
@@ -0,0 +1,664 @@ +/** + * 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
e1b383840d26ebdfbf298ee7f64ac26f697f9495.json
Indicate source disposal in timeout(fallback) (#6365)
src/main/java/io/reactivex/Flowable.java
@@ -16442,7 +16442,7 @@ public final Flowable<T> timeout(long timeout, TimeUnit timeUnit) { /** * Returns a Flowable that mirrors the source Publisher but applies a timeout policy for each emitted * item. If the next item isn't emitted within the specified timeout duration starting from its predecessor...
true
Other
ReactiveX
RxJava
e1b383840d26ebdfbf298ee7f64ac26f697f9495.json
Indicate source disposal in timeout(fallback) (#6365)
src/main/java/io/reactivex/Maybe.java
@@ -4463,7 +4463,7 @@ public final Maybe<T> timeout(long timeout, TimeUnit timeUnit) { /** * Returns a Maybe that mirrors the source Maybe but applies a timeout policy for each emitted * item. If the next item isn't emitted within the specified timeout duration starting from its predecessor, - * th...
true
Other
ReactiveX
RxJava
e1b383840d26ebdfbf298ee7f64ac26f697f9495.json
Indicate source disposal in timeout(fallback) (#6365)
src/main/java/io/reactivex/Observable.java
@@ -13617,7 +13617,8 @@ public final Observable<T> timeout(long timeout, TimeUnit timeUnit) { /** * Returns an Observable that mirrors the source ObservableSource but applies a timeout policy for each emitted * item. If the next item isn't emitted within the specified timeout duration starting from its...
true
Other
ReactiveX
RxJava
5aef7fee1add9bd0d64a38f1f671eeac3abe0db0.json
Javadoc: fix examples using markdown instead of @code (#6346)
src/main/java/io/reactivex/Flowable.java
@@ -8846,7 +8846,7 @@ public final <K> Flowable<T> distinct(Function<? super T, K> keySelector, * {@code CharSequence}s or {@code List}s where the objects will actually have the same * references when they are modified and {@code distinctUntilChanged} will evaluate subsequent items as same. * To avoid...
true
Other
ReactiveX
RxJava
5aef7fee1add9bd0d64a38f1f671eeac3abe0db0.json
Javadoc: fix examples using markdown instead of @code (#6346)
src/main/java/io/reactivex/Observable.java
@@ -7879,7 +7879,7 @@ public final <K> Observable<T> distinct(Function<? super T, K> keySelector, Call * {@code CharSequence}s or {@code List}s where the objects will actually have the same * references when they are modified and {@code distinctUntilChanged} will evaluate subsequent items as same. * T...
true
Other
ReactiveX
RxJava
5278124db4a93b8f59cee4e3baa9e864601637fd.json
Replace indexed loop with for-each java5 syntax (#6335) * Replace indexed loop with for-each java5 syntax * Restore code as per @akarnokd code review * Keep empty lines as per @akarnokd code review
src/main/java/io/reactivex/internal/operators/parallel/ParallelJoin.java
@@ -110,15 +110,13 @@ public void cancel() { } void cancelAll() { - for (int i = 0; i < subscribers.length; i++) { - JoinInnerSubscriber<T> s = subscribers[i]; + for (JoinInnerSubscriber<T> s : subscribers) { s.cancel(); } }...
false
Other
ReactiveX
RxJava
913e80046194b2f679e4213335c7a17cfa74c1e0.json
Fix: use correct return type in Javadoc documentation (#6344)
src/main/java/io/reactivex/Flowable.java
@@ -9289,7 +9289,7 @@ public final Maybe<T> elementAt(long index) { } /** - * Returns a Flowable that emits the item found at a specified index in a sequence of emissions from + * Returns a Single that emits the item found at a specified index in a sequence of emissions from * this Flowable, o...
true
Other
ReactiveX
RxJava
913e80046194b2f679e4213335c7a17cfa74c1e0.json
Fix: use correct return type in Javadoc documentation (#6344)
src/main/java/io/reactivex/Observable.java
@@ -9507,7 +9507,7 @@ public final Maybe<T> lastElement() { * * @param defaultItem * the default item to emit if the source ObservableSource is empty - * @return an Observable that emits only the last item emitted by the source ObservableSource, or a default item + * @return a Singl...
true
Other
ReactiveX
RxJava
1e4e966e5f848aaf931cb43db77c36a92ab62885.json
2.x: Update Filtering Observables docs (#6343) * Update operator list; revise descriptions * Add examples
docs/Filtering-Observables.md
@@ -1,22 +1,760 @@ -This page shows operators you can use to filter and select items emitted by Observables. - -* [**`filter( )`**](http://reactivex.io/documentation/operators/filter.html) — filter items emitted by an Observable -* [**`takeLast( )`**](http://reactivex.io/documentation/operators/takelast.html) — only em...
false
Other
ReactiveX
RxJava
3e4ae3856f184d5783d34ffc5c468d91e67d77d8.json
Fix Flowable#toObservable backpressure support (#6321)
src/main/java/io/reactivex/Flowable.java
@@ -16983,7 +16983,7 @@ public final <K, V> Single<Map<K, Collection<V>>> toMultimap( * @since 2.0 */ @CheckReturnValue - @BackpressureSupport(BackpressureKind.NONE) + @BackpressureSupport(BackpressureKind.UNBOUNDED_IN) @SchedulerSupport(SchedulerSupport.NONE) public final Observable<T>...
false
Other
ReactiveX
RxJava
ac3b5b195b8abf6086c21c7601ff5d054e0041d4.json
Change javadoc explanation for Mutable List (#6314)
src/main/java/io/reactivex/Flowable.java
@@ -8746,7 +8746,7 @@ public final <K> Flowable<T> distinct(Function<? super T, K> keySelector, * {@code CharSequence}s or {@code List}s where the objects will actually have the same * references when they are modified and {@code distinctUntilChanged} will evaluate subsequent items as same. * To avoid...
true
Other
ReactiveX
RxJava
ac3b5b195b8abf6086c21c7601ff5d054e0041d4.json
Change javadoc explanation for Mutable List (#6314)
src/main/java/io/reactivex/Observable.java
@@ -7830,7 +7830,7 @@ public final <K> Observable<T> distinct(Function<? super T, K> keySelector, Call * {@code CharSequence}s or {@code List}s where the objects will actually have the same * references when they are modified and {@code distinctUntilChanged} will evaluate subsequent items as same. * T...
true
Other
ReactiveX
RxJava
acd5466c4440961da905d0c1c0e78752bda155ef.json
2.x: Add dematerialize(selector), deprecate old (#6281) * 2.x: Add dematerialize(selector), deprecate old * Restore full coverage * Fix parameter naming
src/main/java/io/reactivex/Flowable.java
@@ -27,7 +27,7 @@ import io.reactivex.internal.fuseable.*; import io.reactivex.internal.operators.flowable.*; import io.reactivex.internal.operators.mixed.*; -import io.reactivex.internal.operators.observable.ObservableFromPublisher; +import io.reactivex.internal.operators.observable.*; import io.reactivex.internal...
true
Other
ReactiveX
RxJava
acd5466c4440961da905d0c1c0e78752bda155ef.json
2.x: Add dematerialize(selector), deprecate old (#6281) * 2.x: Add dematerialize(selector), deprecate old * Restore full coverage * Fix parameter naming
src/main/java/io/reactivex/Observable.java
@@ -7587,13 +7587,15 @@ public final Observable<T> delaySubscription(long delay, TimeUnit unit, Schedule * <pre><code> * Observable.just(createOnNext(1), createOnComplete(), createOnNext(2)) * .doOnDispose(() -&gt; System.out.println("Disposed!")); + * .dematerialize() * .test() * .ass...
true
Other
ReactiveX
RxJava
acd5466c4440961da905d0c1c0e78752bda155ef.json
2.x: Add dematerialize(selector), deprecate old (#6281) * 2.x: Add dematerialize(selector), deprecate old * Restore full coverage * Fix parameter naming
src/main/java/io/reactivex/internal/operators/flowable/FlowableDematerialize.java
@@ -16,29 +16,39 @@ import org.reactivestreams.*; import io.reactivex.*; +import io.reactivex.exceptions.Exceptions; +import io.reactivex.functions.Function; +import io.reactivex.internal.functions.ObjectHelper; import io.reactivex.internal.subscriptions.SubscriptionHelper; import io.reactivex.plugins.RxJavaPlugi...
true
Other
ReactiveX
RxJava
acd5466c4440961da905d0c1c0e78752bda155ef.json
2.x: Add dematerialize(selector), deprecate old (#6281) * 2.x: Add dematerialize(selector), deprecate old * Restore full coverage * Fix parameter naming
src/main/java/io/reactivex/internal/operators/observable/ObservableDematerialize.java
@@ -15,29 +15,38 @@ import io.reactivex.*; import io.reactivex.disposables.Disposable; +import io.reactivex.exceptions.Exceptions; +import io.reactivex.functions.Function; import io.reactivex.internal.disposables.DisposableHelper; +import io.reactivex.internal.functions.ObjectHelper; import io.reactivex.plugins.R...
true
Other
ReactiveX
RxJava
acd5466c4440961da905d0c1c0e78752bda155ef.json
2.x: Add dematerialize(selector), deprecate old (#6281) * 2.x: Add dematerialize(selector), deprecate old * Restore full coverage * Fix parameter naming
src/test/java/io/reactivex/flowable/FlowableTests.java
@@ -14,22 +14,24 @@ package io.reactivex.flowable; import static org.junit.Assert.*; +import static org.mockito.ArgumentMatchers.*; import static org.mockito.Mockito.*; import java.util.*; import java.util.concurrent.*; import java.util.concurrent.atomic.*; -import io.reactivex.Observable; import org.junit...
true
Other
ReactiveX
RxJava
acd5466c4440961da905d0c1c0e78752bda155ef.json
2.x: Add dematerialize(selector), deprecate old (#6281) * 2.x: Add dematerialize(selector), deprecate old * Restore full coverage * Fix parameter naming
src/test/java/io/reactivex/internal/operators/flowable/FlowableDematerializeTest.java
@@ -24,12 +24,57 @@ import io.reactivex.*; import io.reactivex.exceptions.TestException; import io.reactivex.functions.Function; +import io.reactivex.internal.functions.Functions; import io.reactivex.internal.subscriptions.BooleanSubscription; import io.reactivex.plugins.RxJavaPlugins; import io.reactivex.subscri...
true
Other
ReactiveX
RxJava
acd5466c4440961da905d0c1c0e78752bda155ef.json
2.x: Add dematerialize(selector), deprecate old (#6281) * 2.x: Add dematerialize(selector), deprecate old * Restore full coverage * Fix parameter naming
src/test/java/io/reactivex/internal/operators/observable/ObservableDematerializeTest.java
@@ -24,11 +24,56 @@ import io.reactivex.disposables.Disposables; import io.reactivex.exceptions.TestException; import io.reactivex.functions.Function; +import io.reactivex.internal.functions.Functions; import io.reactivex.observers.TestObserver; import io.reactivex.plugins.RxJavaPlugins; +@SuppressWarnings("depr...
true
Other
ReactiveX
RxJava
acd5466c4440961da905d0c1c0e78752bda155ef.json
2.x: Add dematerialize(selector), deprecate old (#6281) * 2.x: Add dematerialize(selector), deprecate old * Restore full coverage * Fix parameter naming
src/test/java/io/reactivex/observable/ObservableTest.java
@@ -14,6 +14,7 @@ package io.reactivex.observable; import static org.junit.Assert.*; +import static org.mockito.ArgumentMatchers.*; import static org.mockito.Mockito.*; import java.util.*; @@ -28,6 +29,7 @@ import io.reactivex.Observer; import io.reactivex.disposables.*; import io.reactivex.functions.*; +imp...
true
Other
ReactiveX
RxJava
bc9d59441c189ede38b986ba9839017719126f37.json
2.x: Add materialize() and dematerialize() (#6278) * 2.x: Add materialize() and dematerialize() * Add remaining test cases * Correct dematerialize javadoc * Use dematerialize selector fix some docs
src/main/java/io/reactivex/Completable.java
@@ -26,7 +26,7 @@ import io.reactivex.internal.operators.completable.*; import io.reactivex.internal.operators.maybe.*; import io.reactivex.internal.operators.mixed.*; -import io.reactivex.internal.operators.single.SingleDelayWithCompletable; +import io.reactivex.internal.operators.single.*; import io.reactivex.int...
true
Other
ReactiveX
RxJava
bc9d59441c189ede38b986ba9839017719126f37.json
2.x: Add materialize() and dematerialize() (#6278) * 2.x: Add materialize() and dematerialize() * Add remaining test cases * Correct dematerialize javadoc * Use dematerialize selector fix some docs
src/main/java/io/reactivex/Maybe.java
@@ -3377,6 +3377,26 @@ public final <R> Maybe<R> map(Function<? super T, ? extends R> mapper) { return RxJavaPlugins.onAssembly(new MaybeMap<T, R>(this, mapper)); } + /** + * Maps the signal types of this Maybe into a {@link Notification} of the same kind + * and emits it as a single success ...
true
Other
ReactiveX
RxJava
bc9d59441c189ede38b986ba9839017719126f37.json
2.x: Add materialize() and dematerialize() (#6278) * 2.x: Add materialize() and dematerialize() * Add remaining test cases * Correct dematerialize javadoc * Use dematerialize selector fix some docs
src/main/java/io/reactivex/Single.java
@@ -2302,6 +2302,43 @@ public final Single<T> delaySubscription(long time, TimeUnit unit, Scheduler sch return delaySubscription(Observable.timer(time, unit, scheduler)); } + /** + * Maps the {@link Notification} success value of this Single back into normal + * {@code onSuccess}, {@code onEr...
true
Other
ReactiveX
RxJava
bc9d59441c189ede38b986ba9839017719126f37.json
2.x: Add materialize() and dematerialize() (#6278) * 2.x: Add materialize() and dematerialize() * Add remaining test cases * Correct dematerialize javadoc * Use dematerialize selector fix some docs
src/main/java/io/reactivex/internal/operators/completable/CompletableMaterialize.java
@@ -0,0 +1,40 @@ +/** + * 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
bc9d59441c189ede38b986ba9839017719126f37.json
2.x: Add materialize() and dematerialize() (#6278) * 2.x: Add materialize() and dematerialize() * Add remaining test cases * Correct dematerialize javadoc * Use dematerialize selector fix some docs
src/main/java/io/reactivex/internal/operators/maybe/MaybeMaterialize.java
@@ -0,0 +1,40 @@ +/** + * 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
bc9d59441c189ede38b986ba9839017719126f37.json
2.x: Add materialize() and dematerialize() (#6278) * 2.x: Add materialize() and dematerialize() * Add remaining test cases * Correct dematerialize javadoc * Use dematerialize selector fix some docs
src/main/java/io/reactivex/internal/operators/mixed/MaterializeSingleObserver.java
@@ -0,0 +1,71 @@ +/** + * 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
bc9d59441c189ede38b986ba9839017719126f37.json
2.x: Add materialize() and dematerialize() (#6278) * 2.x: Add materialize() and dematerialize() * Add remaining test cases * Correct dematerialize javadoc * Use dematerialize selector fix some docs
src/main/java/io/reactivex/internal/operators/single/SingleDematerialize.java
@@ -0,0 +1,105 @@ +/** + * 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
bc9d59441c189ede38b986ba9839017719126f37.json
2.x: Add materialize() and dematerialize() (#6278) * 2.x: Add materialize() and dematerialize() * Add remaining test cases * Correct dematerialize javadoc * Use dematerialize selector fix some docs
src/main/java/io/reactivex/internal/operators/single/SingleMaterialize.java
@@ -0,0 +1,40 @@ +/** + * 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
bc9d59441c189ede38b986ba9839017719126f37.json
2.x: Add materialize() and dematerialize() (#6278) * 2.x: Add materialize() and dematerialize() * Add remaining test cases * Correct dematerialize javadoc * Use dematerialize selector fix some docs
src/test/java/io/reactivex/internal/operators/completable/CompletableMaterializeTest.java
@@ -0,0 +1,58 @@ +/** + * 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
bc9d59441c189ede38b986ba9839017719126f37.json
2.x: Add materialize() and dematerialize() (#6278) * 2.x: Add materialize() and dematerialize() * Add remaining test cases * Correct dematerialize javadoc * Use dematerialize selector fix some docs
src/test/java/io/reactivex/internal/operators/maybe/MaybeMaterializeTest.java
@@ -0,0 +1,67 @@ +/** + * 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
bc9d59441c189ede38b986ba9839017719126f37.json
2.x: Add materialize() and dematerialize() (#6278) * 2.x: Add materialize() and dematerialize() * Add remaining test cases * Correct dematerialize javadoc * Use dematerialize selector fix some docs
src/test/java/io/reactivex/internal/operators/single/SingleDematerializeTest.java
@@ -0,0 +1,107 @@ +/** + * 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
bc9d59441c189ede38b986ba9839017719126f37.json
2.x: Add materialize() and dematerialize() (#6278) * 2.x: Add materialize() and dematerialize() * Add remaining test cases * Correct dematerialize javadoc * Use dematerialize selector fix some docs
src/test/java/io/reactivex/internal/operators/single/SingleMaterializeTest.java
@@ -0,0 +1,58 @@ +/** + * 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
caefffa27e7c2e8d1a9f09bc51213f77ad5ae93e.json
2.x: Improve the package docs of i.r.schedulers (#6280)
src/main/java/io/reactivex/schedulers/package-info.java
@@ -14,7 +14,9 @@ * limitations under the License. */ /** - * Scheduler implementations, value+time record class and the standard factory class to - * return standard RxJava schedulers or wrap any Executor-based (thread pool) instances. + * Contains notably the factory class of {@link io.reactivex.schedulers.Sched...
false
Other
ReactiveX
RxJava
fba8b61b08f3f11e588ed2e7f7b3c183eb71eab8.json
2.x: Update Error Handling Operators docs (#6266) * Change document structure; update operator list * Add examples * Clarify which handler is invoked * Use consistent wording in the descriptions * Cleanup
docs/Error-Handling-Operators.md
@@ -1,14 +1,284 @@ -There are a variety of operators that you can use to react to or recover from `onError` notifications from Observables. For example, you might: +There are a variety of operators that you can use to react to or recover from `onError` notifications from reactive sources, such as `Observable`s. For exa...
false
Other
ReactiveX
RxJava
76abb7beef3aa0b808cdbe193fd96ef04a5f0903.json
2.x: Call the doOn{Dispose|Cancel} handler at most once (#6269)
src/main/java/io/reactivex/Observable.java
@@ -8046,7 +8046,7 @@ public final Observable<T> doOnError(Consumer<? super Throwable> onError) { /** * Calls the appropriate onXXX method (shared between all Observer) for the lifecycle events of - * the sequence (subscription, disposal, requesting). + * the sequence (subscription, disposal). ...
true
Other
ReactiveX
RxJava
76abb7beef3aa0b808cdbe193fd96ef04a5f0903.json
2.x: Call the doOn{Dispose|Cancel} handler at most once (#6269)
src/main/java/io/reactivex/internal/observers/DisposableLambdaObserver.java
@@ -61,6 +61,7 @@ public void onNext(T t) { @Override public void onError(Throwable t) { if (upstream != DisposableHelper.DISPOSED) { + upstream = DisposableHelper.DISPOSED; downstream.onError(t); } else { RxJavaPlugins.onError(t); @@ -70,19 +71,24 @@ pub...
true
Other
ReactiveX
RxJava
76abb7beef3aa0b808cdbe193fd96ef04a5f0903.json
2.x: Call the doOn{Dispose|Cancel} handler at most once (#6269)
src/main/java/io/reactivex/internal/operators/flowable/FlowableDoOnLifecycle.java
@@ -108,13 +108,17 @@ public void request(long n) { @Override public void cancel() { - try { - onCancel.run(); - } catch (Throwable e) { - Exceptions.throwIfFatal(e); - RxJavaPlugins.onError(e); + Subscription s = upstream...
true
Other
ReactiveX
RxJava
76abb7beef3aa0b808cdbe193fd96ef04a5f0903.json
2.x: Call the doOn{Dispose|Cancel} handler at most once (#6269)
src/test/java/io/reactivex/internal/operators/flowable/FlowableDoOnLifecycleTest.java
@@ -87,7 +87,7 @@ public void run() throws Exception { ); assertEquals(1, calls[0]); - assertEquals(2, calls[1]); + assertEquals(1, calls[1]); } @Test
true
Other
ReactiveX
RxJava
76abb7beef3aa0b808cdbe193fd96ef04a5f0903.json
2.x: Call the doOn{Dispose|Cancel} handler at most once (#6269)
src/test/java/io/reactivex/internal/operators/flowable/FlowableDoOnUnsubscribeTest.java
@@ -24,6 +24,7 @@ import io.reactivex.Flowable; import io.reactivex.disposables.Disposable; import io.reactivex.functions.*; +import io.reactivex.processors.BehaviorProcessor; import io.reactivex.subscribers.TestSubscriber; public class FlowableDoOnUnsubscribeTest { @@ -148,4 +149,24 @@ public void run() { ...
true
Other
ReactiveX
RxJava
76abb7beef3aa0b808cdbe193fd96ef04a5f0903.json
2.x: Call the doOn{Dispose|Cancel} handler at most once (#6269)
src/test/java/io/reactivex/internal/operators/observable/ObservableCacheTest.java
@@ -113,7 +113,7 @@ public void testUnsubscribeSource() throws Exception { o.subscribe(); o.subscribe(); o.subscribe(); - verify(unsubscribe, times(1)).run(); + verify(unsubscribe, never()).run(); } @Test
true
Other
ReactiveX
RxJava
76abb7beef3aa0b808cdbe193fd96ef04a5f0903.json
2.x: Call the doOn{Dispose|Cancel} handler at most once (#6269)
src/test/java/io/reactivex/internal/operators/observable/ObservableDoOnUnsubscribeTest.java
@@ -25,6 +25,7 @@ import io.reactivex.disposables.Disposable; import io.reactivex.functions.*; import io.reactivex.observers.TestObserver; +import io.reactivex.subjects.BehaviorSubject; public class ObservableDoOnUnsubscribeTest { @@ -152,4 +153,24 @@ public void run() { assertEquals("There should exac...
true
Other
ReactiveX
RxJava
76abb7beef3aa0b808cdbe193fd96ef04a5f0903.json
2.x: Call the doOn{Dispose|Cancel} handler at most once (#6269)
src/test/java/io/reactivex/internal/operators/observable/ObservableReplayTest.java
@@ -938,11 +938,11 @@ public void accept(String v) { @Test public void testUnsubscribeSource() throws Exception { Action unsubscribe = mock(Action.class); - Observable<Integer> o = Observable.just(1).doOnDispose(unsubscribe).cache(); + Observable<Integer> o = Observable.just(1).doOnDisp...
true
Other
ReactiveX
RxJava
c35874145070eddf6a9b4dd5559e7c8df9490512.json
2.x: Add C.delaySubscription marble, fix some javadoc (#6257)
src/main/java/io/reactivex/Completable.java
@@ -1393,6 +1393,7 @@ public final Completable delay(final long delay, final TimeUnit unit, final Sche /** * Returns a Completable that delays the subscription to the source CompletableSource by a given amount of time. * <p> + * <img width="640" height="475" src="https://raw.github.com/wiki/Reactiv...
true
Other
ReactiveX
RxJava
c35874145070eddf6a9b4dd5559e7c8df9490512.json
2.x: Add C.delaySubscription marble, fix some javadoc (#6257)
src/main/java/io/reactivex/internal/fuseable/ConditionalSubscriber.java
@@ -16,7 +16,7 @@ import io.reactivex.FlowableSubscriber; /** - * A Subscriber with an additional onNextIf(T) method that + * A Subscriber with an additional {@link #tryOnNext(Object)} method that * tells the caller the specified value has been accepted or * not. * @@ -30,6 +30,7 @@ * Conditionally take...
true
Other
ReactiveX
RxJava
f78bd953e6d09792d2ba2aa1c3fce0f7c9110810.json
Add delaySubscription() methods to Completable #5081 (#6242) * Add delaySubscription() methods to Completable #5081 * fix parameter test and documentation for delaySubscription() * add tests to delayCompletable() * remove mocked observer from delaySubscription() tests for Completable
src/main/java/io/reactivex/Completable.java
@@ -1390,6 +1390,51 @@ public final Completable delay(final long delay, final TimeUnit unit, final Sche return RxJavaPlugins.onAssembly(new CompletableDelay(this, delay, unit, scheduler, delayError)); } + /** + * Returns a Completable that delays the subscription to the source CompletableSource b...
true
Other
ReactiveX
RxJava
f78bd953e6d09792d2ba2aa1c3fce0f7c9110810.json
Add delaySubscription() methods to Completable #5081 (#6242) * Add delaySubscription() methods to Completable #5081 * fix parameter test and documentation for delaySubscription() * add tests to delayCompletable() * remove mocked observer from delaySubscription() tests for Completable
src/test/java/io/reactivex/internal/operators/completable/CompletableDelayTest.java
@@ -20,11 +20,14 @@ import org.junit.Test; -import io.reactivex.*; +import io.reactivex.CompletableSource; +import io.reactivex.TestHelper; +import io.reactivex.Completable; import io.reactivex.exceptions.TestException; import io.reactivex.functions.*; import io.reactivex.observers.TestObserver; -import io.reac...
true
Other
ReactiveX
RxJava
f78bd953e6d09792d2ba2aa1c3fce0f7c9110810.json
Add delaySubscription() methods to Completable #5081 (#6242) * Add delaySubscription() methods to Completable #5081 * fix parameter test and documentation for delaySubscription() * add tests to delayCompletable() * remove mocked observer from delaySubscription() tests for Completable
src/test/java/io/reactivex/validators/ParamValidationCheckerTest.java
@@ -261,6 +261,10 @@ public void checkParallelFlowable() { addOverride(new ParamOverride(Completable.class, 0, ParamMode.ANY, "delay", Long.TYPE, TimeUnit.class, Scheduler.class)); addOverride(new ParamOverride(Completable.class, 0, ParamMode.ANY, "delay", Long.TYPE, TimeUnit.class, Scheduler.class, B...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/main/java/io/reactivex/internal/observers/BlockingMultiObserver.java
@@ -19,6 +19,8 @@ import io.reactivex.disposables.Disposable; import io.reactivex.internal.util.*; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; + /** * A combined Observer that awaits the success or error signal via a CountDownLatch. * @param <T> the value type @@ -148,7 +150,7 @@ ...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/main/java/io/reactivex/internal/observers/FutureObserver.java
@@ -23,6 +23,8 @@ import io.reactivex.internal.util.BlockingHelper; import io.reactivex.plugins.RxJavaPlugins; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; + /** * An Observer + Future that expects exactly one upstream value and provides it * via the (blocking) Future API. @@ -92,7...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/main/java/io/reactivex/internal/observers/FutureSingleObserver.java
@@ -22,6 +22,8 @@ import io.reactivex.internal.util.BlockingHelper; import io.reactivex.plugins.RxJavaPlugins; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; + /** * An Observer + Future that expects exactly one upstream value and provides it * via the (blocking) Future API. @@ -91,7...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/main/java/io/reactivex/internal/operators/completable/CompletableTimeout.java
@@ -20,6 +20,8 @@ import io.reactivex.disposables.*; import io.reactivex.plugins.RxJavaPlugins; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; + public final class CompletableTimeout extends Completable { final CompletableSource source; @@ -104,7 +106,7 @@ public void run() { ...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/main/java/io/reactivex/internal/operators/flowable/FlowableTimeoutTimed.java
@@ -23,6 +23,8 @@ import io.reactivex.internal.subscriptions.*; import io.reactivex.plugins.RxJavaPlugins; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; + public final class FlowableTimeoutTimed<T> extends AbstractFlowableWithUpstream<T, T> { final long timeout; final TimeUnit...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/main/java/io/reactivex/internal/operators/observable/ObservableTimeoutTimed.java
@@ -21,6 +21,8 @@ import io.reactivex.internal.disposables.*; import io.reactivex.plugins.RxJavaPlugins; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; + public final class ObservableTimeoutTimed<T> extends AbstractObservableWithUpstream<T, T> { final long timeout; final TimeUn...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/main/java/io/reactivex/internal/operators/single/SingleTimeout.java
@@ -21,6 +21,8 @@ import io.reactivex.internal.disposables.DisposableHelper; import io.reactivex.plugins.RxJavaPlugins; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; + public final class SingleTimeout<T> extends Single<T> { final SingleSource<T> source; @@ -45,7 +47,7 @@ public S...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/main/java/io/reactivex/internal/subscribers/FutureSubscriber.java
@@ -24,6 +24,8 @@ import io.reactivex.internal.util.BlockingHelper; import io.reactivex.plugins.RxJavaPlugins; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; + /** * A Subscriber + Future that expects exactly one upstream value and provides it * via the (blocking) Future API. @@ -93,...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/main/java/io/reactivex/internal/util/ExceptionHelper.java
@@ -14,6 +14,7 @@ package io.reactivex.internal.util; import java.util.*; +import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicReference; import io.reactivex.exceptions.CompositeException; @@ -121,6 +122,14 @@ public static <E extends Throwable> Exception throwIfThrowable(Throwable e)...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/test/java/io/reactivex/internal/observers/BlockingMultiObserverTest.java
@@ -13,9 +13,11 @@ package io.reactivex.internal.observers; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; import static org.junit.Assert.*; import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; import org.junit.Test; @@ -132,4 +134,17 @@ public vo...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/test/java/io/reactivex/internal/observers/FutureObserverTest.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.observers; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; import static org.junit.Assert.*; import java.util.*; @@ -352,4 +353,14 @@ public void run() { assertEquals(1, fo.get().intValue()); } + + @Test + public vo...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/test/java/io/reactivex/internal/observers/FutureSingleObserverTest.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.observers; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; import static org.junit.Assert.*; import java.util.concurrent.*; @@ -89,8 +90,8 @@ public void timeout() throws Exception { try { f.get(100, TimeUnit.MILLIS...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/test/java/io/reactivex/internal/operators/completable/CompletableTimeoutTest.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.completable; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; import static org.junit.Assert.*; import java.util.List; @@ -40,7 +41,7 @@ public void timeoutException() throws Exception { .timeout(100, TimeUnit.MILLISECO...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/test/java/io/reactivex/internal/operators/flowable/FlowableTimeoutTests.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.flowable; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; import static org.junit.Assert.*; import static org.mockito.ArgumentMatchers.*; import static org.mockito.Mockito.*; @@ -82,26 +83,24 @@ public void shouldNotTimeoutIfSec...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/test/java/io/reactivex/internal/operators/observable/ObservableTimeoutTests.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.operators.observable; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; import static org.junit.Assert.*; import static org.mockito.ArgumentMatchers.*; import static org.mockito.Mockito.*; @@ -81,27 +82,23 @@ public void shouldNotTimeoutIfS...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/test/java/io/reactivex/internal/operators/single/SingleTimeoutTest.java
@@ -13,10 +13,12 @@ package io.reactivex.internal.operators.single; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; import static org.junit.Assert.*; import java.util.List; import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; import org.junit.Test; ...
true
Other
ReactiveX
RxJava
6126752a3a26e084af4cd0e096d77b94ce2a8f94.json
Add timeout and unit to TimeoutException message (#6234) * Add timeout and unit to TimeoutException message * New timeout message, add tests
src/test/java/io/reactivex/internal/subscribers/FutureSubscriberTest.java
@@ -13,6 +13,7 @@ package io.reactivex.internal.subscribers; +import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; import static org.junit.Assert.*; import java.util.*; @@ -281,4 +282,14 @@ public void run() { assertEquals(1, fs.get().intValue()); } + + @Test + public ...
true
Other
ReactiveX
RxJava
3c773caf327f301e81e60bd0743178dcb7e793e8.json
2.x JavaDocs: Remove unnecessary 's' from ConnectableObservable (#6220)
src/main/java/io/reactivex/observables/ConnectableObservable.java
@@ -203,7 +203,7 @@ public final Observable<T> refCount(int subscriberCount, long timeout, TimeUnit * during the lifetime of the returned Observable. If this ConnectableObservable * terminates, the connection is never renewed, no matter how Observers come * and go. Use {@link #refCount()} to renew a c...
false
Other
ReactiveX
RxJava
59454ea47965547e7e218039ed152b591a51e268.json
Fix terminology of cancel/dispose in the JavaDocs (#6199) * #6196 Fixing terminology of cancel/dispose in the JavaDocs for Completable. * #6196 Fixing terminology of cancel/dispose in the JavaDocs for Maybe. * #6196 Fixing terminology of cancel/dispose in the JavaDocs for Observable. * #6196 Fixing terminolog...
src/main/java/io/reactivex/Completable.java
@@ -90,7 +90,7 @@ * d.dispose(); * </code></pre> * <p> - * Note that by design, subscriptions via {@link #subscribe(CompletableObserver)} can't be cancelled/disposed + * Note that by design, subscriptions via {@link #subscribe(CompletableObserver)} can't be disposed * from the outside (hence the * {@code void...
true
Other
ReactiveX
RxJava
59454ea47965547e7e218039ed152b591a51e268.json
Fix terminology of cancel/dispose in the JavaDocs (#6199) * #6196 Fixing terminology of cancel/dispose in the JavaDocs for Completable. * #6196 Fixing terminology of cancel/dispose in the JavaDocs for Maybe. * #6196 Fixing terminology of cancel/dispose in the JavaDocs for Observable. * #6196 Fixing terminolog...
src/main/java/io/reactivex/Maybe.java
@@ -93,7 +93,7 @@ * d.dispose(); * </code></pre> * <p> - * Note that by design, subscriptions via {@link #subscribe(MaybeObserver)} can't be cancelled/disposed + * Note that by design, subscriptions via {@link #subscribe(MaybeObserver)} can't be disposed * from the outside (hence the * {@code void} return of ...
true
Other
ReactiveX
RxJava
59454ea47965547e7e218039ed152b591a51e268.json
Fix terminology of cancel/dispose in the JavaDocs (#6199) * #6196 Fixing terminology of cancel/dispose in the JavaDocs for Completable. * #6196 Fixing terminology of cancel/dispose in the JavaDocs for Maybe. * #6196 Fixing terminology of cancel/dispose in the JavaDocs for Observable. * #6196 Fixing terminolog...
src/main/java/io/reactivex/Observable.java
@@ -53,7 +53,7 @@ * The design of this class was derived from the * <a href="https://github.com/reactive-streams/reactive-streams-jvm">Reactive-Streams design and specification</a> * by removing any backpressure-related infrastructure and implementation detail, replacing the - * {@code org.reactivestreams.Subscri...
true
Other
ReactiveX
RxJava
59454ea47965547e7e218039ed152b591a51e268.json
Fix terminology of cancel/dispose in the JavaDocs (#6199) * #6196 Fixing terminology of cancel/dispose in the JavaDocs for Completable. * #6196 Fixing terminology of cancel/dispose in the JavaDocs for Maybe. * #6196 Fixing terminology of cancel/dispose in the JavaDocs for Observable. * #6196 Fixing terminolog...
src/main/java/io/reactivex/Single.java
@@ -97,7 +97,7 @@ * d.dispose(); * </code></pre> * <p> - * Note that by design, subscriptions via {@link #subscribe(SingleObserver)} can't be cancelled/disposed + * Note that by design, subscriptions via {@link #subscribe(SingleObserver)} can't be disposed * from the outside (hence the * {@code void} return o...
true
Other
ReactiveX
RxJava
fbbae6c37bca0a22e32aad6f2901cf65fc460d8a.json
2.x: Fix toFlowable marbles and descriptions (#6200) * 2.x: Fix toFlowable marbles and descriptions * Adjust wording
src/main/java/io/reactivex/Flowable.java
@@ -5842,15 +5842,16 @@ public final T blockingSingle(T defaultItem) { } /** - * Returns a {@link Future} representing the single value emitted by this {@code Flowable}. + * Returns a {@link Future} representing the only value emitted by this {@code Flowable}. + * <p> + * <img width="640" he...
true
Other
ReactiveX
RxJava
fbbae6c37bca0a22e32aad6f2901cf65fc460d8a.json
2.x: Fix toFlowable marbles and descriptions (#6200) * 2.x: Fix toFlowable marbles and descriptions * Adjust wording
src/main/java/io/reactivex/Observable.java
@@ -5340,15 +5340,16 @@ public final T blockingSingle(T defaultItem) { } /** - * Returns a {@link Future} representing the single value emitted by this {@code Observable}. + * Returns a {@link Future} representing the only value emitted by this {@code Observable}. + * <p> + * <img width="640...
true
Other
ReactiveX
RxJava
eceae80aedfb942c82f66890c4c7c7e2bcf80d8a.json
Remove unused imports
src/test/java/io/reactivex/internal/operators/observable/ObservableObserveOnTest.java
@@ -37,10 +37,8 @@ import io.reactivex.internal.schedulers.ImmediateThinScheduler; import io.reactivex.observers.*; import io.reactivex.plugins.RxJavaPlugins; -import io.reactivex.processors.UnicastProcessor; import io.reactivex.schedulers.*; import io.reactivex.subjects.*; -import io.reactivex.subscribers.TestSub...
false
Other
ReactiveX
RxJava
835ab00699d39c092ef6e90cf1868722b9180fe1.json
2.x: Fix marble of Maybe.flatMap events to MaybeSource (#6155)
src/main/java/io/reactivex/Maybe.java
@@ -2909,7 +2909,7 @@ public final <R> Maybe<R> flatMap(Function<? super T, ? extends MaybeSource<? ex * Maps the onSuccess, onError or onComplete signals of this Maybe into MaybeSource and emits that * MaybeSource's signals. * <p> - * <img width="640" height="410" src="https://raw.github.com/wiki...
false
Other
ReactiveX
RxJava
3562dfc5d2529efa5de41a7b8689f6847b3fb616.json
Add marble diagrams for various Single operators (#6141)
src/main/java/io/reactivex/Single.java
@@ -414,6 +414,8 @@ public static <T> Flowable<T> concatArrayEager(SingleSource<? extends T>... sour /** * Concatenates a Publisher sequence of SingleSources eagerly into a single stream of values. * <p> + * <img width="640" height="307" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-o...
false
Other
ReactiveX
RxJava
bb939111a026a12880a1e9b75c5579c366177fe0.json
2.x: Add marbles for Single.concat operator (#6137) * Add marbles for Single.concat operator * Update URL for Single.concat marble diagram * Update Single.concat marble's height
src/main/java/io/reactivex/Single.java
@@ -166,6 +166,8 @@ public static <T> Single<T> ambArray(final SingleSource<? extends T>... sources) /** * Concatenate the single values, in a non-overlapping fashion, of the SingleSources provided by * an Iterable sequence. + * <p> + * <img width="640" height="319" src="https://raw.github.com/...
false