blob: 1bc3e80c0a4f936b102060101843328a670ee8c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import lombok.experimental.WithBy;
public class WithByInAnonymousClass {
Object annonymous = new Object() {
@WithBy class Inner {
private String string;
private Inner(String string) {
super();
}
public @java.lang.SuppressWarnings("all") Inner withStringBy(final java.util.function.Function<? super String, ? extends String> transformer) {
return new Inner(transformer.apply(this.string));
}
}
x() {
super();
}
};
public WithByInAnonymousClass() {
super();
}
}
|