Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

259
Views
How to let Java-to-Kotlin converter understand Lombok and convert to data class?

For example, a Java lombok class and its usage:

@Data
class Person {
  String name;
  Integer age;
}

new Person().setName("a").setAge(42);

I want to convert to Kotlin's data class automatically:

data class Person (
  val name: String,
  val age: Int,
)

Person(name="a", age=42)

However, Intellij IDEA's current automatic converter does not seem to do the job... Is there an approach to solve this?

P.S. This is a sibling of Java to Kotlin auto converter: How to automatically convert Streams to kotlin functions?. I make this a separate question to avoid asking two not-that-related things in one question.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Here is an existing feature request regarding automatic conversion from @lombok.Data to data class https://youtrack.jetbrains.com/issue/KTIJ-12602. Feel free to upvote/comment on it.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!