J2K: not initialized field of non-primitive type should have null initializer
#KT-11544 Fixed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user