diff options
author | Olivier Lamy <olamy@apache.org> | 2012-01-09 12:44:02 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-01-09 12:44:02 +0000 |
commit | 717cbf7c8aa9bdacf632bad57ef6788afe565989 (patch) | |
tree | c4a15f1030f0606aa05c791519bb54d11e48f299 /archiva-modules/archiva-base/archiva-artifact-converter | |
parent | 8e2309ee394485d276bef07a08761feb43cf46f1 (diff) | |
download | archiva-717cbf7c8aa9bdacf632bad57ef6788afe565989.tar.gz archiva-717cbf7c8aa9bdacf632bad57ef6788afe565989.zip |
take care of some ArrayList size init
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1229118 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-artifact-converter')
-rw-r--r-- | archiva-modules/archiva-base/archiva-artifact-converter/src/main/java/org/apache/archiva/converter/artifact/LegacyToDefaultConverter.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/archiva-modules/archiva-base/archiva-artifact-converter/src/main/java/org/apache/archiva/converter/artifact/LegacyToDefaultConverter.java b/archiva-modules/archiva-base/archiva-artifact-converter/src/main/java/org/apache/archiva/converter/artifact/LegacyToDefaultConverter.java index 9633e637e..216c4ee21 100644 --- a/archiva-modules/archiva-base/archiva-artifact-converter/src/main/java/org/apache/archiva/converter/artifact/LegacyToDefaultConverter.java +++ b/archiva-modules/archiva-base/archiva-artifact-converter/src/main/java/org/apache/archiva/converter/artifact/LegacyToDefaultConverter.java @@ -22,10 +22,10 @@ package org.apache.archiva.converter.artifact; import org.apache.archiva.common.plexusbridge.DigesterUtils; import org.apache.archiva.common.plexusbridge.PlexusSisuBridge; import org.apache.archiva.common.plexusbridge.PlexusSisuBridgeException; -import org.apache.commons.io.FileUtils; -import org.apache.commons.io.IOUtils; import org.apache.archiva.transaction.FileTransaction; import org.apache.archiva.transaction.TransactionException; +import org.apache.commons.io.FileUtils; +import org.apache.commons.io.IOUtils; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.factory.ArtifactFactory; import org.apache.maven.artifact.handler.manager.ArtifactHandlerManager; @@ -75,7 +75,6 @@ public class LegacyToDefaultConverter { /** * {@link List}<{@link Digester} - * */ private List<? extends Digester> digesters; @@ -701,7 +700,7 @@ public class LegacyToDefaultConverter List<String> messages = warnings.get( artifact ); if ( messages == null ) { - messages = new ArrayList<String>(); + messages = new ArrayList<String>( 1 ); } messages.add( message ); warnings.put( artifact, messages ); |