diff options
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/FieldDefaults.java | 15 | ||||
-rw-r--r-- | test/transform/resource/before/FieldDefaultsNoop.java | 3 | ||||
-rw-r--r-- | test/transform/resource/before/ValuePlain.java | 13 |
3 files changed, 31 insertions, 0 deletions
diff --git a/test/transform/resource/before/FieldDefaults.java b/test/transform/resource/before/FieldDefaults.java new file mode 100644 index 00000000..ffe89734 --- /dev/null +++ b/test/transform/resource/before/FieldDefaults.java @@ -0,0 +1,15 @@ +@lombok.experimental.FieldDefaults(makeFinal = true) +class FieldDefaults1 { + int x; + @lombok.experimental.NonFinal int y; + + FieldDefaults1(int x) { + this.x = x; + } +} + +@lombok.experimental.FieldDefaults(level = lombok.AccessLevel.PRIVATE) +class FieldDefaults2 { + @lombok.experimental.PackagePrivate int x; + int y; +}
\ No newline at end of file diff --git a/test/transform/resource/before/FieldDefaultsNoop.java b/test/transform/resource/before/FieldDefaultsNoop.java new file mode 100644 index 00000000..cbdefaf5 --- /dev/null +++ b/test/transform/resource/before/FieldDefaultsNoop.java @@ -0,0 +1,3 @@ +@lombok.experimental.FieldDefaults +class FieldDefaultsNoop { +}
\ No newline at end of file diff --git a/test/transform/resource/before/ValuePlain.java b/test/transform/resource/before/ValuePlain.java new file mode 100644 index 00000000..39c583cc --- /dev/null +++ b/test/transform/resource/before/ValuePlain.java @@ -0,0 +1,13 @@ +import lombok.experimental.Value; +@lombok.experimental.Value class Value1 { + final int x; + String name; +} +@Value @lombok.experimental.NonFinal class Value2 { + public int x; + String name; +} +@Value class Value3 { + @lombok.experimental.NonFinal int x; + int y; +}
\ No newline at end of file |