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

89
January 23, 2022, at 2:20 PM

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.

Rent Charter Buses Company
READ ALSO
RNFSManager.RNFSFileTypeRegular is undefined

RNFSManager.RNFSFileTypeRegular is undefined

Am using Expo SDK 42 and react-native : 063

113
I want to make python code that opens a file reads first 2 lines and send resoults using discord webhook

I want to make python code that opens a file reads first 2 lines and send resoults using discord webhook

i have this core right now and it doesn't work if anyone could help it would be great

116
production Deploy symfony error symfony 5

production Deploy symfony error symfony 5

Hello i tried to deploy my symfony app using symfony deploy documentation command and i got this error on my Navigator

106