Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id B36EA1B8C085 for ; Sun, 6 May 2012 13:25:52 -0300 (ADT) Received: from auth-smtp.nebula.fi ([217.30.180.105]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SR4HK-0006zn-Lw for pgsql-jdbc@postgresql.org; Sun, 06 May 2012 16:25:51 +0000 Received: from quadvadis.localdomain (gw.nitor.fi [83.145.228.24]) (authenticated bits=0) by auth-smtp.nebula.fi (8.13.8/8.13.4) with ESMTP id q46GPBXe010103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 6 May 2012 19:25:14 +0300 Message-ID: <4FA6A5E7.5000309@nitorcreations.com> Date: Sun, 06 May 2012 19:25:11 +0300 From: Mikko Tiihonen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap Content-Type: multipart/mixed; boundary="------------010000000702060700050703" X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201205/11 X-Sequence-Number: 22911 This is a multi-part message in MIME format. --------------010000000702060700050703 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------010000000702060700050703 Content-Type: text/x-patch; name="0001-Change-all-usages-of-Vector-to-List-and-ArrayList.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-Change-all-usages-of-Vector-to-List-and-ArrayList.patch" --------------010000000702060700050703--