Use Jsr305State.DEFAULT instead of IGNORE as a default value

This commit is contained in:
Denis Zharkov
2017-09-25 19:05:53 +03:00
parent dd2630e5c6
commit 5b7c766a54
6 changed files with 42 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
import foo.A
fun main(a: A) {
<warning descr="[NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS] Expected type does not accept nulls in Kotlin, but the value may be null in Java">a.field</warning>.length
}
+5
View File
@@ -0,0 +1,5 @@
import foo.A
fun main(a: A) {
a.field.length
}
+5
View File
@@ -0,0 +1,5 @@
import foo.A
fun main(a: A) {
<warning descr="[NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS] Expected type does not accept nulls in Kotlin, but the value may be null in Java">a.field</warning>.length
}