dsgryazin
01/10/2017, 11:40 AM?
are lost for unknown reason, maybe during migrations to kotlin or just Java code returns null
too unexpectedly)
I don't understand how kotlin plugin warns about that - I've found only "Function or property has platform type"
inspection, but i have no warnings at all for this code:
Java:
public class TestClass {
private Integer i1;
private Integer i2;
public TestClass(Integer i1, Integer i2) {
this.i1 = i1;
this.i2 = i2;
}
}
Kotlin
class TestClient {
val x: Int? = null
fun foo() {
val java = TestClass(x, x)
}
}