J2K: not initialized field of non-primitive type should have null initializer

#KT-11544 Fixed
This commit is contained in:
Natalia Ukhorskaya
2016-03-23 13:54:13 +03:00
parent 8616c9588d
commit 4bc4f0bce7
16 changed files with 73 additions and 24 deletions
+22
View File
@@ -0,0 +1,22 @@
public class Init {
public String field1;
public String field2;
public int field3;
public int field4;
public Init() {
field1 = "str";
field3 = 1;
String prop1;
prop1 = "aaa";
String prop2;
int prop3;
prop3 = 1;
int prop4;
}
}