Skip to content

Commit 4964d5d

Browse files
Deprecate the Old Create Method
1 parent 00f4488 commit 4964d5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rxjava-core/src/main/java/rx/Observable.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ protected Observable(Action1<Operator<? super T>> f) {
184184
>>>>>>> Added Observable.bind
185185
*
186186
* @param <T>
187+
* @deprecated
187188
*/
189+
@Deprecated
188190
public static interface OnSubscribeFunc<T> extends Function {
189191
public Subscription onSubscribe(Observer<? super T> t1);
190192
}
@@ -239,6 +241,7 @@ public final static <T> Observable<T> create(final Action1<Operator<? super T>>
239241
return new Observable<T>(f);
240242
}
241243

244+
@Deprecated
242245
public final static <T> Observable<T> create(final OnSubscribeFunc<T> func) {
243246
return new Observable<T>(new Action1<Operator<? super T>>() {
244247

0 commit comments

Comments
 (0)