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

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap
Дата
Msg-id CADK3HH+zWRhwydvEsVqG-e0_5x3FuBP=RXF21LQ8Zbue9CRTuw@mail.gmail.com
обсуждение исходный текст
Ответ на Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap  (Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>)
Список pgsql-jdbc
On Sun, May 6, 2012 at 12:25 PM, Mikko Tiihonen
<mikko.tiihonen@nitorcreations.com> wrote:
> Hi,
>
> Here are two small cleanup patches.
>
> First one replaces all Vector references with List (usage) and ArrayList
> (creation).
> Second replaces all Hashtable references with Map (usage) and HashMap
> (creation).
>
> Reasons:
> * Theoretically faster since the ArrayList/HashMap are not synchronized
> * Using interfaces makes changing of List/Map implementations easier at
> later time
> * Vector/Hashtable were deprecated already in Java 1.2
>
> -Mikko
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>

Mikko,

Thanks for the patch it has been applied to master

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Re: Issues with IN-OUT parameters for Array of Objects in EDB using Java
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Patch: Add support for hstore extension - and map it to/from java.util.Map