Skip to content

Commit 2eaeb56

Browse files
committed
Upgrade to Kafka 3.7
1 parent 251b47c commit 2eaeb56

File tree

1 file changed

+4
-2
lines changed
  • fluent-kafka-streams-tests/src/main/java/com/bakdata/fluent_kafka_streams_tests

1 file changed

+4
-2
lines changed

fluent-kafka-streams-tests/src/main/java/com/bakdata/fluent_kafka_streams_tests/TestTopology.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,16 @@ protected <K, V> TestTopology<K, V> with(
322322
* Get the default serde of the key type in your application.
323323
*/
324324
private Serde<DefaultK> getDefaultKeySerde() {
325-
return this.defaultKeySerde != null ? this.defaultKeySerde : this.getStreamsConfig().defaultKeySerde();
325+
return this.defaultKeySerde != null ? this.defaultKeySerde
326+
: (Serde<DefaultK>) this.getStreamsConfig().defaultKeySerde();
326327
}
327328

328329
/**
329330
* Get the default serde of the value type in your application.
330331
*/
331332
private Serde<DefaultV> getDefaultValueSerde() {
332-
return this.defaultValueSerde != null ? this.defaultValueSerde : this.getStreamsConfig().defaultValueSerde();
333+
return this.defaultValueSerde != null ? this.defaultValueSerde
334+
: (Serde<DefaultV>) this.getStreamsConfig().defaultValueSerde();
333335
}
334336

335337
/**

0 commit comments

Comments
 (0)