Re: Fwd: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap

From: Hiroshi Saito <hiroshi(at)winpg(dot)jp>
To: Lew <noone(at)lewscanon(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Fwd: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap
Date: 2012-05-13 22:34:57
Message-ID: p0ytlv5552y3cbmiay5q9kru.1336948497544@email.android.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Lew <noone(at)lewscanon(dot)com>:

>Luis Flores wrote:
>> So, excluding the example above, it is a good thing to replace Vector by
>> List/ArrayList and Hashtable by Map/HashMap.
>> In some case LinkedList is better than ArrayList.
>
>Which is exactly why _usage_ of the list should be through the 'List'
>interface regardless of the implementation class.
>
>--
>Lew
>Honi soit qui mal y pense.
>http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
>
>--
>Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org)
>To make changes to your subscription:
>http://www.postgresql.org/mailpref/pgsql-jdbc
>

Browse pgsql-jdbc by date

  From Date Subject
Next Message Mephysto 2012-05-14 06:41:32 Re: Fwd: Postgres JDBC, WS and commit
Previous Message Lew 2012-05-13 20:44:26 Re: Fwd: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap