From d6f1116108754152377cb1e0e276dedb7ffabbab Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Tue, 22 Nov 2016 00:37:07 +0100 Subject: `var` can now also be configured to emit a warning when used. --- test/transform/resource/before/VarWarning.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/transform/resource/before/VarWarning.java (limited to 'test/transform/resource/before/VarWarning.java') 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 -- cgit