Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap - Mailing list pgsql-jdbc

From Mikko Tiihonen
Subject Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap
Date
Msg-id 4FA6A5E7.5000309@nitorcreations.com
Whole thread Raw
Responses Re: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap  (Dave Cramer <pg@fastcrypt.com>)
List 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 by date:

Previous
From: Shijun Kong
Date:
Subject: Re: PGSimpleDataSource not support jdbc url
Next
From: dmp
Date:
Subject: Re: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap