File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
config/src/main/java/com/typesafe/config/impl Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ private AbstractConfigValue parseConcatenation(ConfigNodeConcatenation n) {
5959 if (flavor == ConfigSyntax .JSON )
6060 throw new ConfigException .BugOrBroken ("Found a concatenation node in JSON" );
6161
62- List <AbstractConfigValue > values = new ArrayList <AbstractConfigValue >();
62+ List <AbstractConfigValue > values = new ArrayList <AbstractConfigValue >(n . children (). size () );
6363
6464 for (AbstractConfigNode node : n .children ()) {
6565 AbstractConfigValue v = null ;
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ static ConfigOrigin mergeOrigins(Collection<? extends ConfigOrigin> stack) {
364364 Iterator <? extends ConfigOrigin > i = stack .iterator ();
365365 return mergeTwo ((SimpleConfigOrigin ) i .next (), (SimpleConfigOrigin ) i .next ());
366366 } else {
367- List <SimpleConfigOrigin > remaining = new ArrayList <SimpleConfigOrigin >();
367+ List <SimpleConfigOrigin > remaining = new ArrayList <SimpleConfigOrigin >(stack . size () );
368368 for (ConfigOrigin o : stack ) {
369369 remaining .add ((SimpleConfigOrigin ) o );
370370 }
You can’t perform that action at this time.
0 commit comments