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

From Dave Cramer
Subject Re: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap
Date
Msg-id CADK3HH+zWRhwydvEsVqG-e0_5x3FuBP=RXF21LQ8Zbue9CRTuw@mail.gmail.com
Whole thread Raw
In response to Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap  (Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>)
List 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 by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Re: Issues with IN-OUT parameters for Array of Objects in EDB using Java
Next
From: Dave Cramer
Date:
Subject: Re: Patch: Add support for hstore extension - and map it to/from java.util.Map