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 { companion object {
@JvmStatic @JvmStatic
private fun matchDestination( private fun matchDestination(
@NonNull destination: NavDestination?, destination: NavDestination?,
@IdRes destId: Int @IdRes destId: Int
): Boolean { ): Boolean {
var currentDestination = destination var currentDestination = destination

View File

@@ -67,7 +67,7 @@ class HeaderView : RelativeLayout {
@JvmOverloads @JvmOverloads
@ModelProp @ModelProp
fun browseUrl(@Nullable browseUrl: String? = String()) { fun browseUrl(browseUrl: String? = String()) {
if (browseUrl.isNullOrEmpty()) if (browseUrl.isNullOrEmpty())
B.imgAction.visibility = INVISIBLE B.imgAction.visibility = INVISIBLE
} }