静态方法使用泛形有时会报错:
public static Flowable<T> just(T item)
修改为这样就好了:
public static <T> Flowable<T> just(T item)
参考:https://stackoverflow.com/questions/4209080/using-generic-types-in-a-static-context
本文标题:静态方法使用泛形
本文链接:https://www.haomeiwen.com/subject/fprotftx.html
网友评论