Skip to content

Commit

Permalink
Merge pull request #495 from kyri-petrou/filter-jdk-anns
Browse files Browse the repository at this point in the history
Add filter for `jdk.internal` annotations
  • Loading branch information
adamw authored Oct 23, 2023
2 parents 4ffa7a7 + 01614fc commit 18f73e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/macro.scala
Original file line number Diff line number Diff line change
Expand Up @@ -266,5 +266,6 @@ object Macro:

private def filterAnnotation(a: Term): Boolean =
a.tpe.typeSymbol.maybeOwner.isNoSymbol ||
a.tpe.typeSymbol.owner.fullName != "scala.annotation.internal"
(a.tpe.typeSymbol.owner.fullName != "scala.annotation.internal" &&
a.tpe.typeSymbol.owner.fullName != "jdk.internal")
}

0 comments on commit 18f73e1

Please sign in to comment.