mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 12:19:00 +00:00
Generated qualified names (e.g. Outer.Inner) now stop at anonymous classes instead of adding an empty part. All handlers that add static fields/methods/types now add error messages instead of generating invalid code.
18 lines
327 B
Java
18 lines
327 B
Java
import lombok.experimental.UtilityClass;
|
|
public class UtilityClassInAnonymousClass {
|
|
Object annonymous = new Object() {
|
|
@UtilityClass class Inner {
|
|
private String string;
|
|
Inner() {
|
|
super();
|
|
}
|
|
}
|
|
x() {
|
|
super();
|
|
}
|
|
};
|
|
public UtilityClassInAnonymousClass() {
|
|
super();
|
|
}
|
|
}
|