aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/VarModifier.java
diff options
context:
space:
mode:
authorBulgakov Alexander <abulgakov@at-consulting.ru>2016-10-20 16:41:40 +0300
committerBulgakov Alexander <abulgakov@at-consulting.ru>2016-10-24 16:28:02 +0300
commit55619e8030768fb42f8a9b4207bb330806eaceef (patch)
tree1b46b9ed40a2b03aae727a3a5900ec6356a2a82d /test/transform/resource/after-ecj/VarModifier.java
parent4d9da60f4f2643302e53267ef150ee4c68c39d7c (diff)
downloadlombok-55619e8030768fb42f8a9b4207bb330806eaceef.tar.gz
lombok-55619e8030768fb42f8a9b4207bb330806eaceef.tar.bz2
lombok-55619e8030768fb42f8a9b4207bb330806eaceef.zip
added supporting of @var variables. The @var annotation has the same functionality as the @val except 'final' modifier.
Diffstat (limited to 'test/transform/resource/after-ecj/VarModifier.java')
-rw-r--r--test/transform/resource/after-ecj/VarModifier.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/VarModifier.java b/test/transform/resource/after-ecj/VarModifier.java
new file mode 100644
index 00000000..7f26534c
--- /dev/null
+++ b/test/transform/resource/after-ecj/VarModifier.java
@@ -0,0 +1,12 @@
+import lombok.var;
+public class VarModifier {
+ private String field = "";
+ public VarModifier() {
+ super();
+ }
+ public void testComplex() {
+ final @var char[] shouldBeFinalCharArray = field.toCharArray();
+ @var char[] shouldBeCharArray = field.toCharArray();
+
+ }
+} \ No newline at end of file