You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@onami.apache.org by Simone Tripodi <si...@apache.org> on 2013/01/19 21:08:43 UTC

[test] collections initialized with dimension 1

Hi all, Marco,

is there any reason why, in [test] module, almost all collections are
inizialized with dimension of 1?

TIA,
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/

Re: [test] collections initialized with dimension 1

Posted by Simone Tripodi <si...@apache.org>.
Hi friend,

OK nice, +1 from my side - please back that action with an Issue on
JIRA and assign it to yourself.

TIA, have a nice WE,
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/


On Sun, Jan 20, 2013 at 12:46 PM, Marco Speranza
<ma...@apache.org> wrote:
> Hi simo,
>
> no, any "real" reason. I thought that initialize the ArrayList with size =
> 1 it was more efficient :-D
>
> Maybe it's better use LinkedList or leave the default ArrayList
> initialization.
>
> I will correct them ASAP
>
> Best
>
> --
> Marco Speranza <ma...@apache.org>
> Google Code: http://code.google.com/u/marco.speranza79/
>
>
> 2013/1/19 Simone Tripodi <si...@apache.org>
>
>> Hi all, Marco,
>>
>> is there any reason why, in [test] module, almost all collections are
>> inizialized with dimension of 1?
>>
>> TIA,
>> -Simo
>>
>> http://people.apache.org/~simonetripodi/
>> http://simonetripodi.livejournal.com/
>> http://twitter.com/simonetripodi
>> http://www.99soft.org/
>>

Re: [test] collections initialized with dimension 1

Posted by Marco Speranza <ma...@apache.org>.
Hi simo,

no, any "real" reason. I thought that initialize the ArrayList with size =
1 it was more efficient :-D

Maybe it's better use LinkedList or leave the default ArrayList
initialization.

I will correct them ASAP

Best

--
Marco Speranza <ma...@apache.org>
Google Code: http://code.google.com/u/marco.speranza79/


2013/1/19 Simone Tripodi <si...@apache.org>

> Hi all, Marco,
>
> is there any reason why, in [test] module, almost all collections are
> inizialized with dimension of 1?
>
> TIA,
> -Simo
>
> http://people.apache.org/~simonetripodi/
> http://simonetripodi.livejournal.com/
> http://twitter.com/simonetripodi
> http://www.99soft.org/
>