mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-13 14:20:00 +00:00
[fixes #2838] Handle anonymous classes properly
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.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import lombok.experimental.FieldNameConstants;
|
||||
|
||||
public class FieldNameConstantsInAnonymousClass {
|
||||
Object annonymous = new Object() {
|
||||
@FieldNameConstants
|
||||
class Inner {
|
||||
private String string;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user