Skip to content

Commit

Permalink
Fix for KSAnnotation package null
Browse files Browse the repository at this point in the history
  • Loading branch information
eygraber committed Feb 15, 2024
1 parent f702825 commit 94bb741
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private fun KSAnnotation.hasName(packageName: String, simpleName: String): Boole
// we can skip resolving if the short name doesn't match
if (shortName.asString() != simpleName) return false
val declaration = annotationType.resolve().declaration
return declaration.packageName.asString() == packageName
return declaration.qualifiedName?.asString() == "$packageName.$simpleName"
}

/**
Expand Down

0 comments on commit 94bb741

Please sign in to comment.