Skip to content

Commit f764fcc

Browse files
author
laileon
committed
多态
1 parent ef48525 commit f764fcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/blankj/custom/rxjava/Observable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private Observable(OnSubscribe<T> onSubscribe) {
1616
this.onSubscribe = onSubscribe;
1717
}
1818

19-
// <T> 告诉编译器我这个地方有个类型
19+
// <T> 告诉编译器我这个地方有个类型 静态方法必须加
2020
public static <T> Observable<T> create(OnSubscribe<T> onSubscribe) {
2121
return new Observable<T>(onSubscribe);
2222
}

0 commit comments

Comments
 (0)