The class now implements Serializable to trigger generation of this$0 fields in the inner class. Since Java 18 the compiler only generates the reference to the outer class if it is in use or the class is Serializable.
Project Lombok
Sponsored Content
Offer API docs that look as good as Stripe's using our sponsor Fern. Request a preview of your docs on Fern.
Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java. Never write another getter or equals method again, with one annotation your class has a fully featured builder, automate your logging variables, and much more.
See LICENSE for the Project Lombok license.
Looking for professional support of Project Lombok? Lombok is now part of a tidelift subscription!
For a list of all authors, see the AUTHORS file.
For complete project information, a short tutorial on what lombok does, and how to download / use / install it, see projectlombok.org
You can review our security policy via SECURITY.md
