Replaced sure() invocations with '!!' operator in libraries written on Kotlin.

This commit is contained in:
Evgeny Gerashchenko
2012-09-14 17:13:36 +04:00
parent 533cc5a04d
commit 8e1323bb43
47 changed files with 164 additions and 164 deletions
@@ -8,7 +8,7 @@ import java.util.Properties
/**
* create connection for the specified jdbc url with no credentials
*/
fun getConnection(url : String) : Connection = DriverManager.getConnection(url).sure()
fun getConnection(url : String) : Connection = DriverManager.getConnection(url)!!
/**
* create connection for the specified jdbc url and properties
@@ -47,7 +47,7 @@ fun <T> ResultSet.map(fn : (ResultSet) -> T) : jet.Iterable<T> {
* Returns array with column names
*/
fun ResultSet.getColumnNames() : jet.Array<String> {
val meta = getMetaData().sure()
val meta = getMetaData()!!
return jet.Array<String>(meta.getColumnCount(), {meta.getColumnName(it + 1) ?: it.toString()})
}