Skip to content

Commit f738a85

Browse files
JakeWhartonakarnokd
authored andcommitted
Correct factory method name for converting an RS Publisher. (#4381)
1 parent 6695218 commit f738a85

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,18 +1748,17 @@ public static <T> Observable<T> fromIterable(Iterable<? extends T> source) {
17481748
}
17491749

17501750
/**
1751-
* Converts an arbitrary Reactive-Streams ObservableSource into a Observable if not already a
1752-
* Observable.
1751+
* Converts an arbitrary Reactive-Streams Publisher into an Observable.
17531752
* <dl>
17541753
* <dt><b>Scheduler:</b></dt>
1755-
* <dd>{@code fromObservableSource} does not operate by default on a particular {@link Scheduler}.</dd>
1754+
* <dd>{@code fromPublisher} does not operate by default on a particular {@link Scheduler}.</dd>
17561755
* </dl>
17571756
* @param <T> the value type of the flow
1758-
* @param publisher the ObservableSource to convert
1757+
* @param publisher the Publisher to convert
17591758
* @return the new Observable instance
17601759
* @throws NullPointerException if publisher is null
17611760
*/
1762-
public static <T> Observable<T> fromObservableSource(final Publisher<? extends T> publisher) {
1761+
public static <T> Observable<T> fromPublisher(Publisher<? extends T> publisher) {
17631762
Objects.requireNonNull(publisher, "publisher is null");
17641763
return new ObservableFromPublisher<T>(publisher);
17651764
}

0 commit comments

Comments
 (0)