aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/FieldNameConstantsHandrolled.java
blob: 6762fdd8db7f60d3846dc21e7d90268e96a770f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import lombok.experimental.FieldNameConstants;
import lombok.AccessLevel;
@FieldNameConstants(asEnum = true,innerTypeName = "TypeTest") class FieldNameConstantsHandrolled1 {
  public enum TypeTest {
    field1(),
    alsoAField(),
    thirdField(),
    <clinit>() {
    }
    private @java.lang.SuppressWarnings("all") TypeTest() {
      super();
    }
  }
  int field1;
  int alsoAField;
  int thirdField;
  FieldNameConstantsHandrolled1() {
    super();
  }
}
@FieldNameConstants(asEnum = true,innerTypeName = "TypeTest") class FieldNameConstantsHandrolled2 {
  public enum TypeTest {
    field1(),
    alsoAField(),
    thirdField(),
    <clinit>() {
    }
    public String foo() {
      return name();
    }
    private @java.lang.SuppressWarnings("all") TypeTest() {
      super();
    }
  }
  int field1;
  int alsoAField;
  int thirdField;
  FieldNameConstantsHandrolled2() {
    super();
  }
}
@FieldNameConstants class FieldNameConstantsHandrolled3 {
  static class Fields {
    public static final java.lang.String field1 = "field1";
    public static final java.lang.String thirdField = "thirdField";
    public static final int alsoAField = 5;
    <clinit>() {
    }
    private @java.lang.SuppressWarnings("all") Fields() {
      super();
    }
  }
  int field1;
  int alsoAField;
  int thirdField;
  FieldNameConstantsHandrolled3() {
    super();
  }
}