Lint: Fix KT-11919 ("Missing Parcelable CREATOR field" rule is not accurate)
This commit is contained in:
@@ -27,6 +27,9 @@ private val MODIFIER_MAP = mapOf(
|
||||
)
|
||||
|
||||
internal fun PsiModifierListOwner.hasModifier(modifier: UastModifier): Boolean {
|
||||
if (modifier == UastModifier.FIELD && this is PsiField) {
|
||||
return true;
|
||||
}
|
||||
if (modifier == UastModifier.OVERRIDE && this is PsiAnnotationOwner) {
|
||||
return this.annotations.any { it.qualifiedName == "java.lang.Override" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user