Skip to content

Commit

Permalink
[ABI Validation] Publish filterOutAnnotated as ExternalApi
Browse files Browse the repository at this point in the history
This method is intended to be used to verify the
`kotlin-gradle-plugin-idea` module in kotlin.git
This method has special APIs for the Gradle plugin
only which are not needed to be kept stable
Pull request Kotlin/binary-compatibility-validator#75
  • Loading branch information
sellmair authored and shanshin committed Oct 22, 2024
1 parent e036447 commit 785b4ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public fun Sequence<InputStream>.loadApiFromJvmClasses(visibilityFilter: (String
}
}

internal fun List<ClassBinarySignature>.filterOutAnnotated(targetAnnotations: Set<String>): List<ClassBinarySignature> {
@ExternalApi
public fun List<ClassBinarySignature>.filterOutAnnotated(targetAnnotations: Set<String>): List<ClassBinarySignature> {
if (targetAnnotations.isEmpty()) return this
return filter {
it.annotations.all { ann -> !targetAnnotations.any { ann.refersToName(it) } }
Expand Down

0 comments on commit 785b4ee

Please sign in to comment.