Skip to content

Commit a1693ec

Browse files
authored
3.x: Refactor to io.reactivex.rxjava3.** (ReactiveX#6621)
* 3.x: Refactor to io.reactivex.rxjava3.** * fix javadoc cleanup gradle * javadoc gradle again * Fix package location in text
1 parent f8841c7 commit a1693ec

File tree

1,671 files changed

+10655
-10728
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,671 files changed

+10655
-10728
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,4 @@ bin/
7373
# PMD files
7474
.pmd
7575
.ruleset
76+
test-output/

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ targetCompatibility = JavaVersion.VERSION_1_6
5252
// ---------------------------------------
5353

5454
def junitVersion = "4.12"
55-
def reactiveStreamsVersion = "1.0.2"
55+
def reactiveStreamsVersion = "1.0.3-RC1"
5656
def mockitoVersion = "2.1.0"
5757
def jmhLibVersion = "1.20"
5858
def testNgVersion = "6.11"

gradle/javadoc_cleanup.gradle

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// remove the excessive whitespaces between method arguments in the javadocs
22
task javadocCleanup(dependsOn: "javadoc") doLast {
3-
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/Flowable.html'));
4-
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/Observable.html'));
5-
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/Single.html'));
6-
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/Maybe.html'));
7-
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/Completable.html'));
3+
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/rxjava3/core/Flowable.html'));
4+
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/rxjava3/core/Observable.html'));
5+
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/rxjava3/core/Single.html'));
6+
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/rxjava3/core/Maybe.html'));
7+
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/rxjava3/core/Completable.html'));
88

9-
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/flowables/ConnectableFlowable.html'));
10-
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/observables/ConnectableObservable.html'));
9+
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/rxjava3/flowables/ConnectableFlowable.html'));
10+
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/rxjava3/observables/ConnectableObservable.html'));
1111

12-
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/subjects/ReplaySubject.html'));
13-
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/processors/ReplayProcessor.html'));
14-
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/plugins/RxJavaPlugins.html'));
12+
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/rxjava3/subjects/ReplaySubject.html'));
13+
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/rxjava3/processors/ReplayProcessor.html'));
14+
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/rxjava3/plugins/RxJavaPlugins.html'));
1515

16-
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/parallel/ParallelFlowable.html'));
16+
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/rxjava3/parallel/ParallelFlowable.html'));
1717
}
1818

1919
def fixJavadocFile(file) {

src/jmh/java/io/reactivex/BinaryFlatMapPerf.java src/jmh/java/io/reactivex/rxjava3/core/BinaryFlatMapPerf.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

1616
import java.util.*;
1717
import java.util.concurrent.TimeUnit;
@@ -20,8 +20,7 @@
2020
import org.openjdk.jmh.infra.Blackhole;
2121
import org.reactivestreams.Publisher;
2222

23-
import io.reactivex.Observable;
24-
import io.reactivex.functions.Function;
23+
import io.reactivex.rxjava3.functions.Function;
2524

2625
@BenchmarkMode(Mode.Throughput)
2726
@Warmup(iterations = 5)

src/jmh/java/io/reactivex/BlockingGetPerf.java src/jmh/java/io/reactivex/rxjava3/core/BlockingGetPerf.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

1616
import java.util.concurrent.TimeUnit;
1717

src/jmh/java/io/reactivex/BlockingPerf.java src/jmh/java/io/reactivex/rxjava3/core/BlockingPerf.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

1616
import java.util.Arrays;
1717
import java.util.concurrent.TimeUnit;

src/jmh/java/io/reactivex/CallableAsyncPerf.java src/jmh/java/io/reactivex/rxjava3/core/CallableAsyncPerf.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

1616
import java.util.concurrent.*;
1717

1818
import org.openjdk.jmh.annotations.*;
1919
import org.openjdk.jmh.infra.Blackhole;
2020

21-
import io.reactivex.internal.schedulers.SingleScheduler;
22-
import io.reactivex.schedulers.Schedulers;
21+
import io.reactivex.rxjava3.internal.schedulers.SingleScheduler;
22+
import io.reactivex.rxjava3.schedulers.Schedulers;
2323

2424
@BenchmarkMode(Mode.Throughput)
2525
@Warmup(iterations = 5)

src/jmh/java/io/reactivex/EachTypeFlatMapPerf.java src/jmh/java/io/reactivex/rxjava3/core/EachTypeFlatMapPerf.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

1616
import java.util.concurrent.TimeUnit;
1717

1818
import org.openjdk.jmh.annotations.*;
1919
import org.openjdk.jmh.infra.Blackhole;
2020
import org.reactivestreams.Publisher;
2121

22-
import io.reactivex.functions.Function;
22+
import io.reactivex.rxjava3.functions.Function;
2323

2424
@BenchmarkMode(Mode.Throughput)
2525
@Warmup(iterations = 5)

src/jmh/java/io/reactivex/FlatMapJustPerf.java src/jmh/java/io/reactivex/rxjava3/core/FlatMapJustPerf.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

1616
import java.util.concurrent.TimeUnit;
1717

1818
import org.openjdk.jmh.annotations.*;
1919
import org.openjdk.jmh.infra.Blackhole;
2020
import org.reactivestreams.Publisher;
2121

22-
import io.reactivex.functions.Function;
22+
import io.reactivex.rxjava3.functions.Function;
2323

2424
@BenchmarkMode(Mode.Throughput)
2525
@Warmup(iterations = 5)

src/jmh/java/io/reactivex/FlattenCrossMapPerf.java src/jmh/java/io/reactivex/rxjava3/core/FlattenCrossMapPerf.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

16-
import java.util.*;
16+
import java.util.Arrays;
1717
import java.util.concurrent.TimeUnit;
1818

1919
import org.openjdk.jmh.annotations.*;
2020
import org.openjdk.jmh.infra.Blackhole;
2121

22-
import io.reactivex.functions.Function;
22+
import io.reactivex.rxjava3.functions.Function;
2323

2424
@BenchmarkMode(Mode.Throughput)
2525
@Warmup(iterations = 5)

src/jmh/java/io/reactivex/FlattenJustPerf.java src/jmh/java/io/reactivex/rxjava3/core/FlattenJustPerf.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

1616
import java.util.*;
1717
import java.util.concurrent.TimeUnit;
1818

1919
import org.openjdk.jmh.annotations.*;
2020
import org.openjdk.jmh.infra.Blackhole;
2121

22-
import io.reactivex.functions.Function;
22+
import io.reactivex.rxjava3.functions.Function;
2323

2424
@BenchmarkMode(Mode.Throughput)
2525
@Warmup(iterations = 5)

src/jmh/java/io/reactivex/FlattenRangePerf.java src/jmh/java/io/reactivex/rxjava3/core/FlattenRangePerf.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

16-
import java.util.*;
16+
import java.util.Arrays;
1717
import java.util.concurrent.TimeUnit;
1818

1919
import org.openjdk.jmh.annotations.*;
2020
import org.openjdk.jmh.infra.Blackhole;
2121

22-
import io.reactivex.functions.Function;
22+
import io.reactivex.rxjava3.functions.Function;
2323

2424
@BenchmarkMode(Mode.Throughput)
2525
@Warmup(iterations = 5)

src/jmh/java/io/reactivex/FlowableFlatMapCompletableAsyncPerf.java src/jmh/java/io/reactivex/rxjava3/core/FlowableFlatMapCompletableAsyncPerf.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

1616
import java.util.Arrays;
1717
import java.util.concurrent.TimeUnit;
1818

1919
import org.openjdk.jmh.annotations.*;
2020
import org.openjdk.jmh.infra.Blackhole;
2121

22-
import io.reactivex.functions.Action;
23-
import io.reactivex.internal.functions.Functions;
24-
import io.reactivex.schedulers.Schedulers;
22+
import io.reactivex.rxjava3.functions.Action;
23+
import io.reactivex.rxjava3.internal.functions.Functions;
24+
import io.reactivex.rxjava3.schedulers.Schedulers;
2525

2626
@BenchmarkMode(Mode.Throughput)
2727
@Warmup(iterations = 5)

src/jmh/java/io/reactivex/FlowableFlatMapCompletableSyncPerf.java src/jmh/java/io/reactivex/rxjava3/core/FlowableFlatMapCompletableSyncPerf.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

1616
import java.util.Arrays;
1717
import java.util.concurrent.TimeUnit;
1818

1919
import org.openjdk.jmh.annotations.*;
2020
import org.openjdk.jmh.infra.Blackhole;
2121

22-
import io.reactivex.internal.functions.Functions;
22+
import io.reactivex.rxjava3.internal.functions.Functions;
2323

2424
@BenchmarkMode(Mode.Throughput)
2525
@Warmup(iterations = 5)

src/jmh/java/io/reactivex/InputWithIncrementingInteger.java src/jmh/java/io/reactivex/rxjava3/core/InputWithIncrementingInteger.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

1616
import java.util.Iterator;
1717

1818
import org.openjdk.jmh.annotations.Setup;
1919
import org.openjdk.jmh.infra.Blackhole;
2020
import org.reactivestreams.*;
2121

22-
import io.reactivex.internal.subscriptions.EmptySubscription;
23-
import io.reactivex.subscribers.DefaultSubscriber;
22+
import io.reactivex.rxjava3.internal.subscriptions.EmptySubscription;
23+
import io.reactivex.rxjava3.subscribers.DefaultSubscriber;
2424

2525
/**
2626
* Exposes an Observable and Observer that increments n Integers and consumes them in a Blackhole.

src/jmh/java/io/reactivex/JustAsyncPerf.java src/jmh/java/io/reactivex/rxjava3/core/JustAsyncPerf.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

1616
import java.util.concurrent.TimeUnit;
1717

1818
import org.openjdk.jmh.annotations.*;
1919
import org.openjdk.jmh.infra.Blackhole;
2020

21-
import io.reactivex.internal.schedulers.SingleScheduler;
22-
import io.reactivex.schedulers.Schedulers;
21+
import io.reactivex.rxjava3.internal.schedulers.SingleScheduler;
22+
import io.reactivex.rxjava3.schedulers.Schedulers;
2323

2424
@BenchmarkMode(Mode.Throughput)
2525
@Warmup(iterations = 5)

src/jmh/java/io/reactivex/LatchedSingleObserver.java src/jmh/java/io/reactivex/rxjava3/core/LatchedSingleObserver.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
* the License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
package io.reactivex;
14+
package io.reactivex.rxjava3.core;
1515

1616
import java.util.concurrent.CountDownLatch;
1717

1818
import org.openjdk.jmh.infra.Blackhole;
1919

20-
import io.reactivex.disposables.Disposable;
20+
import io.reactivex.rxjava3.disposables.Disposable;
2121

2222
public final class LatchedSingleObserver<T> implements SingleObserver<T> {
2323
final CountDownLatch cdl;

0 commit comments

Comments
 (0)