Skip to content

Commit

Permalink
Create v3
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Apr 5, 2024
1 parent 990bd4c commit 6d21657
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ public void run(final ProducerBuilder builder) {

@Override
public Map<String, Object> createKafkaProperties() {
final Map<String, Object> kafkaProperties = ProducerApp.super.createKafkaProperties();
kafkaProperties.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class);
return kafkaProperties;
return Map.of(
ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class
);
}
})) {
app.setBrokers(this.kafkaCluster.getBrokerList());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ public void run(final ProducerBuilder builder) {

@Override
public Map<String, Object> createKafkaProperties() {
final Map<String, Object> properties = ProducerApp.super.createKafkaProperties();
properties.put("foo", "bar");
properties.put("hello", "world");
return properties;
return Map.of(
"foo", "bar",
"hello", "world"
);
}
}
}

0 comments on commit 6d21657

Please sign in to comment.