mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 12:19:00 +00:00
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.
11 lines
326 B
Java
11 lines
326 B
Java
@java.lang.SuppressWarnings("serial")
|
|
class UtilityClassInner {
|
|
static final class UtilClass implements java.io.Serializable {
|
|
@java.lang.SuppressWarnings("all")
|
|
@lombok.Generated
|
|
private UtilClass() {
|
|
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
|
|
}
|
|
}
|
|
}
|