aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/VarModifier.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before/VarModifier.java')
-rw-r--r--test/transform/resource/before/VarModifier.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/transform/resource/before/VarModifier.java b/test/transform/resource/before/VarModifier.java
new file mode 100644
index 00000000..7250c1c5
--- /dev/null
+++ b/test/transform/resource/before/VarModifier.java
@@ -0,0 +1,11 @@
+//CONF: lombok.var.flagUsage = ALLOW
+import lombok.experimental.var;
+
+public class VarModifier {
+ private String field = "";
+
+ public void testComplex() {
+ final var shouldBeFinalCharArray = field.toCharArray();
+ var shouldBeCharArray = field.toCharArray();
+ }
+} \ No newline at end of file