Skip to content

Commit

Permalink
Upgrade to Kafka 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Aug 16, 2024
1 parent 251b47c commit 2eaeb56
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,16 @@ protected <K, V> TestTopology<K, V> with(
* Get the default serde of the key type in your application.
*/
private Serde<DefaultK> getDefaultKeySerde() {
return this.defaultKeySerde != null ? this.defaultKeySerde : this.getStreamsConfig().defaultKeySerde();
return this.defaultKeySerde != null ? this.defaultKeySerde
: (Serde<DefaultK>) this.getStreamsConfig().defaultKeySerde();
}

/**
* Get the default serde of the value type in your application.
*/
private Serde<DefaultV> getDefaultValueSerde() {
return this.defaultValueSerde != null ? this.defaultValueSerde : this.getStreamsConfig().defaultValueSerde();
return this.defaultValueSerde != null ? this.defaultValueSerde
: (Serde<DefaultV>) this.getStreamsConfig().defaultValueSerde();
}

/**
Expand Down

0 comments on commit 2eaeb56

Please sign in to comment.