Skip to content

Add special handling for Kotlin data classes #8

Description

@thecodewarrior

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions