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

Поиск
Список
Период
Сортировка
От Mikko Tiihonen
Тема Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap
Дата
Msg-id 4FA6A5E7.5000309@nitorcreations.com
обсуждение исходный текст
Ответы Re: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc
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

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

Предыдущее
От: Shijun Kong
Дата:
Сообщение: Re: PGSimpleDataSource not support jdbc url
Следующее
От: dmp
Дата:
Сообщение: Re: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap