mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-06 04:14:42 +00:00
a initialization of variable like "var o = null;" will throw the compile time error "variable initializer is 'null'"
This commit is contained in:
1 parent
67371e5841
commit
69eeb9edc7
7 files changed
+25
-6
No files matched your search
@@ -1,7 +1,7 @@
|
||||
//CONF: lombok.var.flagUsage = ALLOW
|
||||
import lombok.experimental.var;
|
||||
|
||||
class VarNullInit {
|
||||
public class VarNullInit {
|
||||
void method() {
|
||||
var x = null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user