• tyler
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    4 months ago

    You shouldn’t use Lombok, as it uses non-public internal Java APIs, which is why it breaks every release. At one point we had a bug with Lombok that only resolved if you restarted the application. Switching off of Lombok resolved the issue.

    Just switch to kotlin. You can even just use Kotlin as a library if you really want (just for POJOs), but at this point Kotlin is just better than Java in almost every way.

    • deathmetal27@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      4 months ago

      I agree but I have tried like hell to get my team to use Kotlin but it’s hard to convince upper management. The team is reluctant to switch as well.

      Using Lombok is the next best thing.

      Though for POJOs that are immutable you can use record classes now.