DEV Community


Discussion on: Kotlin: Removing POJO Boilerplate

stealthmusic profile image
Jan Wedel

Although I like Kotlin because of great features like Coroutines, Pojos are not the key feature to me. This has been solved with Lombok in Java:

class Person {
    private String name;
    private int age;

It's not one line, but concise enough to me.

erikthered profile image
Erik Nelson

I will agree that there are definitely more compelling features in Kotlin than data classes. However, it feels cleaner being built into the language versus having to include Lombok's annotation processor.

Forem Open with the Forem app