Use ArrayList instead of LinkedList for known size [SPR-16378] #20924
Spring JDBC unlike other modules uses LinkedList instead of ArrayList in several places. There is a large body of evidence suggesting that on contemporary hardware ArrayList is both faster and has less overhead than even in degenerate cases of empty lists  or unknown size.
There are two places in Spring JDBC where the size of the list is known in advance and an ArrayList of the correct final size can be created
Affects: 4.3.13, 5.0.2
Backported to: 4.3.14