Drop incompatiable java annotations
Both Nullable and NonNull are java annotations and doesn't work on Kotlin. Drop them to make lint happy. Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -90,7 +90,7 @@ class MainActivity : BaseActivity() {
|
||||
companion object {
|
||||
@JvmStatic
|
||||
private fun matchDestination(
|
||||
@NonNull destination: NavDestination?,
|
||||
destination: NavDestination?,
|
||||
@IdRes destId: Int
|
||||
): Boolean {
|
||||
var currentDestination = destination
|
||||
|
||||
@@ -67,7 +67,7 @@ class HeaderView : RelativeLayout {
|
||||
|
||||
@JvmOverloads
|
||||
@ModelProp
|
||||
fun browseUrl(@Nullable browseUrl: String? = String()) {
|
||||
fun browseUrl(browseUrl: String? = String()) {
|
||||
if (browseUrl.isNullOrEmpty())
|
||||
B.imgAction.visibility = INVISIBLE
|
||||
}
|
||||
@@ -81,4 +81,4 @@ class HeaderView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.imgAction.visibility = VISIBLE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user