blob: a74a7f110bcc0ef6f074694465c9e1a3256b89d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//version 8:
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
public class ConstructorsInAnonymousClass {
Object annonymous = new Object() {
@AllArgsConstructor
@RequiredArgsConstructor
@NoArgsConstructor
class Inner {
private String string;
@NonNull
private String string2;
}
};
}
|