aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/FieldNameConstantsBasic.java18
-rw-r--r--test/transform/resource/after-ecj/FieldNameConstantsConfigKeys.java13
-rw-r--r--test/transform/resource/after-ecj/FieldNameConstantsEnum.java23
-rw-r--r--test/transform/resource/after-ecj/FieldNameConstantsWeird.java13
4 files changed, 45 insertions, 22 deletions
diff --git a/test/transform/resource/after-ecj/FieldNameConstantsBasic.java b/test/transform/resource/after-ecj/FieldNameConstantsBasic.java
index f77203ba..674dd602 100644
--- a/test/transform/resource/after-ecj/FieldNameConstantsBasic.java
+++ b/test/transform/resource/after-ecj/FieldNameConstantsBasic.java
@@ -1,15 +1,23 @@
import lombok.experimental.FieldNameConstants;
import lombok.AccessLevel;
-public @FieldNameConstants class FieldNameConstantsBasic {
- public static final java.lang.String FIELD_BUT_PRINT_ME_PLEASE = "butPrintMePlease";
- protected static final java.lang.String FIELD_I_AM_A_DVD_PLAYER = "iAmADvdPlayer";
- @FieldNameConstants(level = AccessLevel.PROTECTED) String iAmADvdPlayer;
+public @FieldNameConstants(level = AccessLevel.PACKAGE) class FieldNameConstantsBasic {
+ static final @java.lang.SuppressWarnings("all") class Fields {
+ public static final java.lang.String butPrintMePlease = "butPrintMePlease";
+ public static final java.lang.String iAmADvdPlayer = "iAmADvdPlayer";
+ <clinit>() {
+ }
+ private @java.lang.SuppressWarnings("all") Fields() {
+ super();
+ }
+ }
+ String iAmADvdPlayer;
int $skipMe;
static double skipMeToo;
+ @FieldNameConstants.Exclude int andMe;
String butPrintMePlease;
<clinit>() {
}
public FieldNameConstantsBasic() {
super();
}
-}
+} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/FieldNameConstantsConfigKeys.java b/test/transform/resource/after-ecj/FieldNameConstantsConfigKeys.java
index 44629ee5..7eb97364 100644
--- a/test/transform/resource/after-ecj/FieldNameConstantsConfigKeys.java
+++ b/test/transform/resource/after-ecj/FieldNameConstantsConfigKeys.java
@@ -1,9 +1,14 @@
public @lombok.experimental.FieldNameConstants class FieldNameConstantsConfigKeys {
- public static final java.lang.String I_AM_A_DVD_PLAYER_SFX = "iAmADvdPlayer";
- String iAmADvdPlayer;
- <clinit>() {
+ public static final @java.lang.SuppressWarnings("all") class Foobar {
+ public static final java.lang.String iAmADvdPlayer = "iAmADvdPlayer";
+ <clinit>() {
+ }
+ private @java.lang.SuppressWarnings("all") Foobar() {
+ super();
+ }
}
+ String iAmADvdPlayer;
public FieldNameConstantsConfigKeys() {
super();
}
-}
+} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/FieldNameConstantsEnum.java b/test/transform/resource/after-ecj/FieldNameConstantsEnum.java
new file mode 100644
index 00000000..053a6e7a
--- /dev/null
+++ b/test/transform/resource/after-ecj/FieldNameConstantsEnum.java
@@ -0,0 +1,23 @@
+import lombok.experimental.FieldNameConstants;
+import lombok.AccessLevel;
+public @FieldNameConstants(onlyExplicitlyIncluded = true,asEnum = true,innerTypeName = "TypeTest") class FieldNameConstantsEnum {
+ public @java.lang.SuppressWarnings("all") enum TypeTest {
+ iAmADvdPlayer(),
+ $dontSkipMe(),
+ alsoDontSkipMe(),
+ private @java.lang.SuppressWarnings("all") TypeTest() {
+ super();
+ }
+ <clinit>() {
+ }
+ }
+ @FieldNameConstants.Include String iAmADvdPlayer;
+ @FieldNameConstants.Include int $dontSkipMe;
+ static @FieldNameConstants.Include double alsoDontSkipMe;
+ int butSkipMe;
+ <clinit>() {
+ }
+ public FieldNameConstantsEnum() {
+ super();
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/FieldNameConstantsWeird.java b/test/transform/resource/after-ecj/FieldNameConstantsWeird.java
deleted file mode 100644
index 9958f664..00000000
--- a/test/transform/resource/after-ecj/FieldNameConstantsWeird.java
+++ /dev/null
@@ -1,13 +0,0 @@
-import lombok.experimental.FieldNameConstants;
-import lombok.AccessLevel;
-public @FieldNameConstants class FieldNameConstantsWeird {
- public static final java.lang.String FIELD_AZ = "A";
- @FieldNameConstants(level = AccessLevel.NONE) String iAmADvdPlayer;
- @FieldNameConstants(prefix = "") String X;
- @FieldNameConstants(suffix = "Z") String A;
- <clinit>() {
- }
- public FieldNameConstantsWeird() {
- super();
- }
-}