aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValSwitchExpression.java
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2021-02-02 09:44:36 +0100
committerRoel Spilker <r.spilker@gmail.com>2021-09-06 11:58:05 +0200
commitfdcbaa033d27b344adfea99d8d7bdd99cceacfb3 (patch)
tree5f385d9d193bd66ac7b5036f0f1b63fce4405cfe /test/transform/resource/after-ecj/ValSwitchExpression.java
parente050dafc9016519e79184e383eab9ffbd579bebd (diff)
downloadlombok-fdcbaa033d27b344adfea99d8d7bdd99cceacfb3.tar.gz
lombok-fdcbaa033d27b344adfea99d8d7bdd99cceacfb3.tar.bz2
lombok-fdcbaa033d27b344adfea99d8d7bdd99cceacfb3.zip
Replace val with native final var in Java >= 10
Diffstat (limited to 'test/transform/resource/after-ecj/ValSwitchExpression.java')
-rw-r--r--test/transform/resource/after-ecj/ValSwitchExpression.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/transform/resource/after-ecj/ValSwitchExpression.java b/test/transform/resource/after-ecj/ValSwitchExpression.java
index 59b503cb..4e848572 100644
--- a/test/transform/resource/after-ecj/ValSwitchExpression.java
+++ b/test/transform/resource/after-ecj/ValSwitchExpression.java
@@ -5,10 +5,10 @@ public class ValSwitchExpression {
super();
}
public void method(int arg) {
- final @val int x = switch (arg) {
+ final @val var x = switch (arg) {
default ->
{
- final @val java.lang.String s = "string";
+ final @val var s = "string";
yield arg;
}
};