Skip to content

Commit 4aec4df

Browse files
build(deps): bump kotlin.version from 1.9.24 to 2.0.0 (#124)
1 parent 3f27c51 commit 4aec4df

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

common/src/main/kotlin/org/neo4j/connectors/kafka/configuration/helpers/Recommenders.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ object Recommenders {
9090
?.filterKeys { dependentPredicate.test(it) }
9191
?.any {
9292
when (val dependentValue = parsedConfig[it.key]) {
93-
is String? -> {
94-
return dependentValue.orEmpty().isNotBlank()
93+
null -> false
94+
is String -> {
95+
return dependentValue.isNotBlank()
9596
}
9697
is List<*> -> {
9798
return dependentValue.isNotEmpty()

common/src/main/kotlin/org/neo4j/connectors/kafka/configuration/helpers/Validators.kt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,12 @@ object Validators {
187187
.let { config ->
188188
if (config.visible() &&
189189
(when (val value = config.value()) {
190-
is Int? -> value == null
191-
is Boolean? -> value == null
192-
is String? -> value.isNullOrEmpty()
193-
is Password? -> value?.value().isNullOrEmpty()
194-
is List<*>? -> value.isEmpty()
190+
null -> true
191+
is Int -> false
192+
is Boolean -> false
193+
is String -> value.isEmpty()
194+
is Password -> value.value().isNullOrEmpty()
195+
is List<*> -> value.isEmpty()
195196
else ->
196197
throw IllegalArgumentException(
197198
"unexpected value '$value' for configuration $name")

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<kafka.version>3.4.1</kafka.version>
6363
<kotest-assertions-core-jvm.version>5.9.0</kotest-assertions-core-jvm.version>
6464
<kotlin.coroutines.version>1.8.1</kotlin.coroutines.version>
65-
<kotlin.version>1.9.24</kotlin.version>
65+
<kotlin.version>2.0.0</kotlin.version>
6666
<license-maven-plugin.version>4.5</license-maven-plugin.version>
6767
<licensing-maven-plugin.version>1.7.11</licensing-maven-plugin.version>
6868
<licensing.prepend.text>/license/neo4j_apache_v2/notice.txt</licensing.prepend.text>

0 commit comments

Comments
 (0)