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

Add special handling for Kotlin data classes #8

Open
thecodewarrior opened this issue Sep 20, 2020 · 0 comments
Open

Add special handling for Kotlin data classes #8

thecodewarrior opened this issue Sep 20, 2020 · 0 comments

Comments

@thecodewarrior
Copy link
Owner

Serializing Kotlin data classes should be special-cased, allowing the omission of the @Refract and @RefractConstructor annotations. Special casing like this is less relevant in Java since everything is already written explicitly, however, requiring those annotations for Kotlin data classes can easily double the length of the declaration.

@RefractClass
data class Foo(val a: Int, val b: String)

vs.

@RefractClass
data class Foo @RefractConstructor constructor(@Refract val a: Int, @Refract val b: String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant