aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/WitherOnClass.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before/WitherOnClass.java')
-rw-r--r--test/transform/resource/before/WitherOnClass.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/test/transform/resource/before/WitherOnClass.java b/test/transform/resource/before/WitherOnClass.java
new file mode 100644
index 00000000..d6a3d3c8
--- /dev/null
+++ b/test/transform/resource/before/WitherOnClass.java
@@ -0,0 +1,45 @@
+@lombok.experimental.Wither
+class WitherOnClass1 {
+ @lombok.experimental.Wither(lombok.AccessLevel.NONE)
+ boolean isNone;
+
+ boolean isPublic;
+
+ WitherOnClass1(boolean isNone, boolean isPublic) {
+ }
+}
+
+@lombok.experimental.Wither(lombok.AccessLevel.PROTECTED)
+class WitherOnClass2 {
+ @lombok.experimental.Wither(lombok.AccessLevel.NONE)
+ boolean isNone;
+
+ boolean isProtected;
+
+ @lombok.experimental.Wither(lombok.AccessLevel.PACKAGE)
+ boolean isPackage;
+
+ WitherOnClass2(boolean isNone, boolean isProtected, boolean isPackage) {
+ }
+}
+
+@lombok.experimental.Wither
+class WitherOnClass3 {
+ String couldBeNull;
+
+ @lombok.NonNull String nonNull;
+
+ WitherOnClass3(String couldBeNull, String nonNull) {
+ }
+}
+
+@lombok.experimental.Wither @lombok.experimental.Accessors(prefix="f")
+class WitherOnClass4 {
+ final int fX = 10;
+
+ final int fY;
+
+ WitherOnClass4(int y) {
+ this.fY = y;
+ }
+}