Use Jsr305State.DEFAULT instead of IGNORE as a default value
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import foo.A
|
||||
|
||||
fun main(a: A) {
|
||||
a.field.length
|
||||
}
|
||||
Vendored
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user