Files
kotlin-fork/compiler/testData/diagnostics/tests/jdk-annotations/sql/Statement.kt
T
Andrey Breslav 5db6bb04e3 Basic Java nullability warnings implemented
#KT-6723 In Progress
2015-02-10 06:55:47 +01:00

13 lines
495 B
Kotlin

fun executeQuery(statement: java.sql.Statement, cmd: String?) {
statement.executeQuery(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>cmd<!>)
statement.executeQuery(cmd!!) : java.sql.ResultSet
}
fun executeQuery(statement: java.sql.PreparedStatement) {
statement.executeQuery() : java.sql.ResultSet
}
fun executeUpdate(statement: java.sql.Statement, cmd: String?) {
statement.executeUpdate(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>cmd<!>)
statement.executeUpdate(cmd!!)
}