diff options
author | Roel Spilker <r.spilker@gmail.com> | 2010-11-11 01:58:48 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2010-11-11 01:58:48 +0100 |
commit | 1c323332493148f0aaa936e668e1b0da5d09c8be (patch) | |
tree | 7b9107aa641fb913702360cc95133a640218552d /test/transform/resource/before | |
parent | c8774389e7cb73e494267af3a87f70c7497b220a (diff) | |
download | lombok-1c323332493148f0aaa936e668e1b0da5d09c8be.tar.gz lombok-1c323332493148f0aaa936e668e1b0da5d09c8be.tar.bz2 lombok-1c323332493148f0aaa936e668e1b0da5d09c8be.zip |
@Getter(lazy=true) support for javac
Diffstat (limited to 'test/transform/resource/before')
4 files changed, 62 insertions, 0 deletions
diff --git a/test/transform/resource/before/GetterLazy.java b/test/transform/resource/before/GetterLazy.java new file mode 100644 index 00000000..51c7a921 --- /dev/null +++ b/test/transform/resource/before/GetterLazy.java @@ -0,0 +1,7 @@ +class GetterLazy { + static class ValueType { + } + + @lombok.Getter(lazy=true) + private final ValueType fieldName = new ValueType(); +} diff --git a/test/transform/resource/before/GetterLazyEahcToString.java b/test/transform/resource/before/GetterLazyEahcToString.java new file mode 100644 index 00000000..60509257 --- /dev/null +++ b/test/transform/resource/before/GetterLazyEahcToString.java @@ -0,0 +1,6 @@ +@lombok.EqualsAndHashCode(doNotUseGetters = true) +@lombok.ToString(doNotUseGetters = true) +class GetterLazyEahcToString { + @lombok.Getter(lazy=true) + private final String value = ""; +} diff --git a/test/transform/resource/before/GetterLazyInvalid.java b/test/transform/resource/before/GetterLazyInvalid.java new file mode 100644 index 00000000..ead12443 --- /dev/null +++ b/test/transform/resource/before/GetterLazyInvalid.java @@ -0,0 +1,24 @@ +class GetterLazyInvalidNotFinal { + @lombok.Getter(lazy=true) + private String fieldName = ""; +} +class GetterLazyInvalidNotPrivate { + @lombok.Getter(lazy=true) + final String fieldName = ""; +} +class GetterLazyInvalidNotPrivateFinal { + @lombok.Getter(lazy=true) + String fieldName = ""; +} +class GetterLazyInvalidNone { + @lombok.Getter(lazy=true, value=lombok.AccessLevel.NONE) + String fieldName = ""; +} +@lombok.Getter(lazy = true) +class GetterLazyInvalidClass { + String fieldName = ""; +} +class GetterLazyInvalidNoInit { + @lombok.Getter(lazy = true) + String fieldName; +} diff --git a/test/transform/resource/before/GetterLazyNative.java b/test/transform/resource/before/GetterLazyNative.java new file mode 100644 index 00000000..bd14cbd7 --- /dev/null +++ b/test/transform/resource/before/GetterLazyNative.java @@ -0,0 +1,25 @@ +class GetterLazyNative { + @lombok.Getter(lazy=true) + private final boolean booleanField = true; + + @lombok.Getter(lazy=true) + private final byte byteField = 1; + + @lombok.Getter(lazy=true) + private final short shortField = 1; + + @lombok.Getter(lazy=true) + private final int intField = 1; + + @lombok.Getter(lazy=true) + private final long longField = 1; + + @lombok.Getter(lazy=true) + private final float floatField = 1.0f; + + @lombok.Getter(lazy=true) + private final double doubleField = 1.0; + + @lombok.Getter(lazy=true) + private final char charField = '1'; +} |