Skip to content

Commit

Permalink
Revert "Fix for KSAnnotation package null"
Browse files Browse the repository at this point in the history
This reverts commit a0fde41.
  • Loading branch information
eygraber committed Jul 10, 2024
1 parent a456be1 commit ecb943e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,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.qualifiedName?.asString() == "$packageName.$simpleName"
return declaration.packageName.asString() == packageName
}

/**
Expand Down

0 comments on commit ecb943e

Please sign in to comment.