Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id D7E5531F0C2 for ; Sun, 13 May 2012 17:55:20 -0300 (ADT) Received: from news.hub.org ([200.46.204.72]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1STfov-0003aU-Gs for pgsql-jdbc@postgresql.org; Sun, 13 May 2012 20:55:20 +0000 Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.5/8.14.5) with ESMTP id q4DKt0Tv035854 for ; Sun, 13 May 2012 17:55:00 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.5/8.14.5/Submit) id q4DKiMOj028791 for pgsql-jdbc@postgresql.org; Sun, 13 May 2012 17:44:22 -0300 (ADT) (envelope-from news) From: Lew X-Newsgroups: pgsql.interfaces.jdbc Subject: Re: Fwd: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap Date: Sun, 13 May 2012 13:44:26 -0700 Organization: albasani.net Lines: 12 Message-ID: References: <4FA6BD06.4060308@ttc-cmc.net> <4FA6D821.5050701@dewire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: news.albasani.net; logging-data="rTXkFFEn8nPH6y4hQdcc7N4ULPUyDJZ7N5y/WihlyPoMDWTEpXwQ8QQM+4kERuzjM5Ahcm1x7wvwFC6Qe7I58uOgx+Vx846qP3zi1rcY7a25LXC2AImgSp/uZtHCGNQT"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 In-Reply-To: Cancel-Lock: sha1:xnJaki5BU4p5TnDNa6QknMFGCS4= To: pgsql-jdbc@postgresql.org X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/32 X-Sequence-Number: 22932 Luis Flores wrote: > So, excluding the example above, it is a good thing to replace Vector by > List/ArrayList and Hashtable by Map/HashMap. > In some case LinkedList is better than ArrayList. Which is exactly why _usage_ of the list should be through the 'List' interface regardless of the implementation class. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg