Skip to content

Commit

Permalink
Fix warning for non-custom Poko.Skip annotation during multiplatform …
Browse files Browse the repository at this point in the history
…compilation (#448)
  • Loading branch information
drewhamilton authored Dec 12, 2024
1 parent 18b3b4b commit 1838bd6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,12 @@ internal class PokoFirCheckersExtension(
}

private fun FirAnnotation.isNestedInDefaultPokoAnnotation(): Boolean {
return annotationTypeRef.coneTypeOrNull?.classId?.outerClassId?.asFqNameString() ==
DEFAULT_POKO_ANNOTATION
val outerFqName = annotationTypeRef.coneTypeOrNull!!.classId!!
.outerClassId!!
.asFqNameString()
return outerFqName == DEFAULT_POKO_ANNOTATION ||
// Multiplatform FqName has "." instead of "/" for package:
outerFqName.replace(".", "/") == DEFAULT_POKO_ANNOTATION
}
}

Expand Down

0 comments on commit 1838bd6

Please sign in to comment.