Replaced sure() invocations with '!!' operator in libraries written on Kotlin.
This commit is contained in:
@@ -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()})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user