Skip to content

Commit

Permalink
Use correct known size for the list
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Oct 19, 2024
1 parent 30cd4a6 commit 096df9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ public void mergeRepositories(List<Repository> toAdd, boolean replace) {
// Infer inner reactor dependencies version
//
Model transformFileToRaw(Model model) {
List<Dependency> newDeps = new ArrayList<>();
List<Dependency> newDeps = new ArrayList<>(model.getDependencies().size());
boolean modified = false;
for (Dependency dep : model.getDependencies()) {
if (dep.getVersion() == null) {
Expand Down

0 comments on commit 096df9c

Please sign in to comment.