aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/GetterLazyEahcToString.java2
-rw-r--r--test/transform/resource/before/GetterLazyInvalid.java11
-rw-r--r--test/transform/resource/before/GetterLazyNative.java3
3 files changed, 12 insertions, 4 deletions
diff --git a/test/transform/resource/before/GetterLazyEahcToString.java b/test/transform/resource/before/GetterLazyEahcToString.java
index 60509257..642f8deb 100644
--- a/test/transform/resource/before/GetterLazyEahcToString.java
+++ b/test/transform/resource/before/GetterLazyEahcToString.java
@@ -3,4 +3,6 @@
class GetterLazyEahcToString {
@lombok.Getter(lazy=true)
private final String value = "";
+ @lombok.Getter
+ private final String value2 = "";
}
diff --git a/test/transform/resource/before/GetterLazyInvalid.java b/test/transform/resource/before/GetterLazyInvalid.java
index ead12443..cc9f9501 100644
--- a/test/transform/resource/before/GetterLazyInvalid.java
+++ b/test/transform/resource/before/GetterLazyInvalid.java
@@ -12,13 +12,16 @@ class GetterLazyInvalidNotPrivateFinal {
}
class GetterLazyInvalidNone {
@lombok.Getter(lazy=true, value=lombok.AccessLevel.NONE)
- String fieldName = "";
+ private final String fieldName = "";
}
@lombok.Getter(lazy = true)
class GetterLazyInvalidClass {
- String fieldName = "";
+ private final String fieldName = "";
}
class GetterLazyInvalidNoInit {
@lombok.Getter(lazy = true)
- String fieldName;
-}
+ private final String fieldName;
+ GetterLazyInvalidNoInit() {
+ this.fieldName = "foo";
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/GetterLazyNative.java b/test/transform/resource/before/GetterLazyNative.java
index bd14cbd7..9b290bc7 100644
--- a/test/transform/resource/before/GetterLazyNative.java
+++ b/test/transform/resource/before/GetterLazyNative.java
@@ -22,4 +22,7 @@ class GetterLazyNative {
@lombok.Getter(lazy=true)
private final char charField = '1';
+
+ @lombok.Getter(lazy=true)
+ private final int[] intArrayField = new int[] {1};
}