BaseView: Switch to non-null upper bound
Type parameter 'T' has nullable upper bound, so override has incorrect signature comparing with a base member with NotNull annotation. Please add a non-nullable upper bound (e.g. Any) to the type parameter. See https://kotlinlang.org/docs/generics.html#upper-bounds and https://youtrack.jetbrains.com/issue/KT-36770 for more details. This warning will become an error soon. Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@ import android.view.animation.AnimationUtils
|
|||||||
import com.airbnb.epoxy.EpoxyModel
|
import com.airbnb.epoxy.EpoxyModel
|
||||||
import com.aurora.store.view.epoxy.views.app.AppListView
|
import com.aurora.store.view.epoxy.views.app.AppListView
|
||||||
|
|
||||||
abstract class BaseView<T : View?> : EpoxyModel<T>() {
|
abstract class BaseView<T : View> : EpoxyModel<T>() {
|
||||||
|
|
||||||
override fun bind(view: T) {
|
override fun bind(view: T) {
|
||||||
super.bind(view)
|
super.bind(view)
|
||||||
@@ -47,4 +47,4 @@ abstract class BaseView<T : View?> : EpoxyModel<T>() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user