mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 00:16:47 +00:00
var can now also be configured to emit a warning when used.
This commit is contained in:
1 parent
8c2ea4fbc6
commit
d6f1116108
7 files changed
+44
-24
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user