mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 00:26:04 +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,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