File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
common/src/main/kotlin/org/neo4j/connectors/kafka/configuration/helpers Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff 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()
Original file line number Diff line number Diff 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 " )
Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments