Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore synthetic annotation classes produced by directly instantiated annotations #71

Closed
ZacSweers opened this issue Nov 1, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@ZacSweers
Copy link

In Kotlin 1.6.0, synthetic annotation classes are present in the API dump and I think they should be automatically excluded.

I can manually ignore them, but it's tedious and prone to breaking due to the mangled names.

Example from here: slackhq/EitherNet#29

public synthetic class com/slack/eithernet/AnnotationsKt$annotationImpl$com_slack_eithernet_StatusCode$0 : com/slack/eithernet/StatusCode {
	public fun <init> (I)V
	public final synthetic fun annotationType ()Ljava/lang/Class;
	public final fun equals (Ljava/lang/Object;)Z
	public final fun hashCode ()I
	public final fun toString ()Ljava/lang/String;
	public final synthetic fun value ()I
}
@qwwdfsad qwwdfsad added the enhancement New feature or request label Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants