You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-data-cassandra/src/main/kotlin/org/springframework/data/cassandra/core/cql/AsyncCqlOperationsExtensions.kt
+4-4
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ fun <T : Any> AsyncCqlOperations.queryForObject(
59
59
entityClass:KClass<T>,
60
60
varargargs:Any
61
61
): CompletableFuture<T?> =
62
-
queryForObject(cql, entityClass.java, args)
62
+
queryForObject(cql, entityClass.java, *args)
63
63
64
64
/**
65
65
* Extension for [AsyncCqlOperations.queryForObject] leveraging reified type parameters.
@@ -68,7 +68,7 @@ inline fun <reified T : Any> AsyncCqlOperations.queryForObject(
68
68
cql:String,
69
69
varargargs:Any
70
70
): CompletableFuture<T?> =
71
-
queryForObject(cql, T::class.java, args)
71
+
queryForObject(cql, T::class.java, *args)
72
72
73
73
/**
74
74
* Extension for [AsyncCqlOperations.queryForObject] leveraging reified type parameters.
@@ -78,7 +78,7 @@ fun <T : Any> AsyncCqlOperations.queryForObject(
78
78
varargargs:Any,
79
79
function: (Row, Int) ->T
80
80
): CompletableFuture<T?> =
81
-
queryForObject(cql, RowMapper{ row, i -> function(row, i) }, *args)
81
+
queryForObject(cql, { row, i -> function(row, i) }, *args)
82
82
83
83
/**
84
84
* Extension for [AsyncCqlOperations.queryForObject] providing a [KClass] based variant.
@@ -114,7 +114,7 @@ inline fun <reified T : Any> AsyncCqlOperations.queryForList(
114
114
cql:String,
115
115
varargargs:Any
116
116
): CompletableFuture<List<T>> =
117
-
queryForList(cql, T::class.java, args)
117
+
queryForList(cql, T::class.java, *args)
118
118
119
119
/**
120
120
* Extension for [AsyncCqlOperations.queryForList] providing a [KClass] based variant.
Copy file name to clipboardExpand all lines: spring-data-cassandra/src/main/kotlin/org/springframework/data/cassandra/core/cql/CqlOperationsExtensions.kt
+4-4
Original file line number
Diff line number
Diff line change
@@ -46,19 +46,19 @@ inline fun <reified T : Any> CqlOperations.queryForObject(cql: String): T? =
46
46
*/
47
47
@Deprecated("Since 2.2, use the reified variant", replaceWith =ReplaceWith("queryForObject<T>(cql, args)"))
48
48
fun <T:Any> CqlOperations.queryForObject(cql:String, entityClass:KClass<T>, varargargs:Any): T?=
49
-
queryForObject(cql, entityClass.java, args)
49
+
queryForObject(cql, entityClass.java, *args)
50
50
51
51
/**
52
52
* Extension for [CqlOperations.queryForObject] leveraging reified type parameters.
Copy file name to clipboardExpand all lines: spring-data-cassandra/src/main/kotlin/org/springframework/data/cassandra/core/cql/ReactiveCqlOperationsExtensions.kt
+4-4
Original file line number
Diff line number
Diff line change
@@ -48,19 +48,19 @@ inline fun <reified T : Any> ReactiveCqlOperations.queryForObject(cql: String):
48
48
*/
49
49
@Deprecated("Since 2.2, use the reified variant", replaceWith =ReplaceWith("queryForObject<T>(cql, args)"))
50
50
fun <T:Any> ReactiveCqlOperations.queryForObject(cql:String, entityClass:KClass<T>, varargargs:Any): Mono<T> =
51
-
queryForObject(cql, entityClass.java, args)
51
+
queryForObject(cql, entityClass.java, *args)
52
52
53
53
/**
54
54
* Extension for [ReactiveCqlOperations.queryForObject] leveraging reified type parameters.
Copy file name to clipboardExpand all lines: spring-data-cassandra/src/test/kotlin/org/springframework/data/cassandra/core/cql/CqlOperationsExtensionsUnitTests.kt
+4-4
Original file line number
Diff line number
Diff line change
@@ -49,14 +49,14 @@ class CqlOperationsExtensionsUnitTests {
49
49
fun`queryForObject(String, KClass, array) extension should call its Java counterpart`() {
Copy file name to clipboardExpand all lines: spring-data-cassandra/src/test/kotlin/org/springframework/data/cassandra/core/cql/LegacyAsyncCqlOperationsExtensionsUnitTests.kt
+3-3
Original file line number
Diff line number
Diff line change
@@ -50,14 +50,14 @@ class LegacyAsyncCqlOperationsExtensionsUnitTests {
50
50
fun`queryForObject(String, KClass, array) extension should call its Java counterpart`() {
Copy file name to clipboardExpand all lines: spring-data-cassandra/src/test/kotlin/org/springframework/data/cassandra/core/cql/ReactiveCqlOperationsExtensionsUnitTests.kt
+4-4
Original file line number
Diff line number
Diff line change
@@ -49,14 +49,14 @@ class ReactiveCqlOperationsExtensionsUnitTests {
49
49
fun`queryForObject(String, KClass, array) extension should call its Java counterpart`() {
0 commit comments