Skip to content

Commit 3f6e595

Browse files
authored
2.x: Improve the wording of the share() JavaDocs (#5824)
* 2.x: Improve the wording of the share() JavaDocs * Fix typo.
1 parent 173156d commit 3f6e595

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/io/reactivex/Flowable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12373,11 +12373,11 @@ public final Flowable<T> serialize() {
1237312373
}
1237412374

1237512375
/**
12376-
* Returns a new {@link Publisher} that multicasts (shares) the original {@link Publisher}. As long as
12376+
* Returns a new {@link Publisher} that multicasts (and shares a single subscription to) the original {@link Publisher}. As long as
1237712377
* there is at least one {@link Subscriber} this {@link Publisher} will be subscribed and emitting data.
1237812378
* When all subscribers have cancelled it will cancel the source {@link Publisher}.
1237912379
* <p>
12380-
* This is an alias for {@link #publish()}.{@link ConnectableFlowable#refCount()}.
12380+
* This is an alias for {@link #publish()}.{@link ConnectableFlowable#refCount() refCount()}.
1238112381
* <p>
1238212382
* <img width="640" height="510" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/publishRefCount.png" alt="">
1238312383
* <dl>

src/main/java/io/reactivex/Observable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10493,11 +10493,11 @@ public final Observable<T> serialize() {
1049310493
}
1049410494

1049510495
/**
10496-
* Returns a new {@link ObservableSource} that multicasts (shares) the original {@link ObservableSource}. As long as
10496+
* Returns a new {@link ObservableSource} that multicasts (and shares a single subscription to) the original {@link ObservableSource}. As long as
1049710497
* there is at least one {@link Observer} this {@link ObservableSource} will be subscribed and emitting data.
1049810498
* When all subscribers have disposed it will dispose the source {@link ObservableSource}.
1049910499
* <p>
10500-
* This is an alias for {@link #publish()}.{@link ConnectableObservable#refCount()}.
10500+
* This is an alias for {@link #publish()}.{@link ConnectableObservable#refCount() refCount()}.
1050110501
* <p>
1050210502
* <img width="640" height="510" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/publishRefCount.o.png" alt="">
1050310503
* <dl>

0 commit comments

Comments
 (0)