mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-12 14:15:06 +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.
21 lines
395 B
Java
21 lines
395 B
Java
import lombok.Getter;
|
|
public class GetterInAnonymousClass {
|
|
Object annonymous = new Object() {
|
|
@Getter class Inner {
|
|
private String string;
|
|
Inner() {
|
|
super();
|
|
}
|
|
public @java.lang.SuppressWarnings("all") String getString() {
|
|
return this.string;
|
|
}
|
|
}
|
|
x() {
|
|
super();
|
|
}
|
|
};
|
|
public GetterInAnonymousClass() {
|
|
super();
|
|
}
|
|
}
|