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:
Aayush Gupta
2023-04-19 13:52:18 +05:30
parent 1d4333d189
commit 90d48af71e
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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
}
}
}