mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
use a initial capacity of one for subversion hook changesets
This commit is contained in:
@@ -121,7 +121,7 @@ public class SvnPostReceiveHookEvent extends AbstractRepositoryHookEvent
|
||||
*/
|
||||
private List<Changeset> fetchChangesets()
|
||||
{
|
||||
List<Changeset> result = new ArrayList<Changeset>();
|
||||
List<Changeset> result = new ArrayList<Changeset>(1);
|
||||
SVNRepository repository = null;
|
||||
|
||||
try
|
||||
|
||||
@@ -35,6 +35,7 @@ package sonia.scm.repository;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@@ -119,7 +120,7 @@ public class SvnPreReceiveHookEvent extends AbstractRepositoryHookEvent
|
||||
*/
|
||||
private Collection<Changeset> fetchChangesets()
|
||||
{
|
||||
List<Changeset> csets = new ArrayList<Changeset>();
|
||||
List<Changeset> csets = new ArrayList<Changeset>(1);
|
||||
SVNClientManager cm = null;
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user