diff options
author | Roel Spilker <r.spilker@gmail.com> | 2016-11-22 00:37:07 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2016-11-22 00:37:07 +0100 |
commit | d6f1116108754152377cb1e0e276dedb7ffabbab (patch) | |
tree | c5cf699157af47de3800c711855a798ad38b00b6 /test/transform/resource/before | |
parent | 8c2ea4fbc64e8b7b4e553a6f8b9363eb0b70d76a (diff) | |
download | lombok-d6f1116108754152377cb1e0e276dedb7ffabbab.tar.gz lombok-d6f1116108754152377cb1e0e276dedb7ffabbab.tar.bz2 lombok-d6f1116108754152377cb1e0e276dedb7ffabbab.zip |
`var` can now also be configured to emit a warning when used.
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/VarWarning.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/transform/resource/before/VarWarning.java b/test/transform/resource/before/VarWarning.java new file mode 100644 index 00000000..85559587 --- /dev/null +++ b/test/transform/resource/before/VarWarning.java @@ -0,0 +1,10 @@ +//CONF: lombok.var.flagUsage = WARNING +//skip compare contents +import lombok.experimental.var; + +public class VarWarning { + public void isOkay() { + var x = "Warning"; + x.toLowerCase(); + } +}
\ No newline at end of file |