jdk annotations for some java.sql methods, related cleanup in stdlib & tests

This commit is contained in:
Alex Tkachman
2012-09-27 12:00:57 +02:00
parent c8e711f84b
commit 57c27bdd37
8 changed files with 147 additions and 20 deletions
@@ -0,0 +1,13 @@
fun executeQuery(statement: java.sql.Statement, cmd: String?) {
statement.executeQuery(<!TYPE_MISMATCH!>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.<!NONE_APPLICABLE!>executeUpdate<!>(cmd)
statement.executeUpdate(cmd!!)
}