Skip to content

Support @JvmStatic on generated Kotlin builders #767

@kbrooks

Description

@kbrooks

Is your feature request related to a problem? Please describe.
I want to convert a project that is using the Java code generation to Kotlin in a codebase that relies heavily on generated builders. In order for the Kotlin code to be backwards compatible with the old Java code, the generated builders need a @JvmStatic annotation so they can be referenced like static methods from Java.

Describe the solution you'd like

Is there a way to configure the code generation to place a @JvmStatic annotation on the builder in the generated companion object?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgood-first-issueGood for newcomerskotlinPull requests that update Kotlin code

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions