Skip to content

Commit 176ebf2

Browse files
committed
Remove another array-based function
1 parent b22ef5a commit 176ebf2

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/main/kotlin/org/mybatis/dynamic/sql/util/kotlin/GroupingCriteriaCollector.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,6 @@ open class GroupingCriteriaCollector : SubCriteriaCollector() {
338338

339339
fun <T : Any> BindableColumn<T>.isNotInWhenPresent(vararg values: T?) = isNotInWhenPresent(values.asList())
340340

341-
@JvmName("isNotInArrayWhenPresent")
342-
infix fun <T : Any> BindableColumn<T>.isNotInWhenPresent(values: Array<out T?>?) =
343-
invoke(org.mybatis.dynamic.sql.util.kotlin.elements.isNotInWhenPresent(values?.asList()))
344-
345341
infix fun <T : Any> BindableColumn<T>.isNotInWhenPresent(values: Collection<T?>?) =
346342
invoke(org.mybatis.dynamic.sql.util.kotlin.elements.isNotInWhenPresent(values))
347343

src/test/kotlin/examples/kotlin/spring/canonical/InfixElementsTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ open class InfixElementsTest {
13531353
fun search(vararg names: String?) {
13541354
val selectStatement = select(firstName) {
13551355
from(person)
1356-
where { firstName isNotInWhenPresent names }
1356+
where { firstName isNotInWhenPresent names.asList() }
13571357
orderBy(id)
13581358
}
13591359

@@ -1375,7 +1375,7 @@ open class InfixElementsTest {
13751375
from(person)
13761376
where {
13771377
id isLessThan 10
1378-
and { firstName isNotInWhenPresent null as Array<String>? }
1378+
and { firstName isNotInWhenPresent null as List<String>? }
13791379
}
13801380
orderBy(id)
13811381
}

0 commit comments

Comments
 (0)