Skip to content

Commit

Permalink
0 init capacity
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Ivanchuk <clicker.heroes.acg@gmail.com>
  • Loading branch information
Aliaksei Bialiauski and l3r8yJ committed Jun 27, 2023
1 parent 1b31065 commit 216b068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/github/eocqrs/kafka/fake/FkRecords.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public FkRecords(
@Override
public ConsumerRecords<Object, String> value() throws Exception {
final Map<TopicPartition, List<ConsumerRecord<Object, String>>> part
= new HashMap<>();
= new HashMap<>(0);
final List<ConsumerRecord<Object, String>> recs = new ListOf<>();
this.datasets.forEach(
dataset -> recs.add(
Expand Down

0 comments on commit 216b068

Please sign in to comment.