X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CD45B3A45CB for ; Mon, 1 Nov 2004 15:50:04 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66602-06 for ; Mon, 1 Nov 2004 15:49:54 +0000 (GMT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by svr1.postgresql.org (Postfix) with ESMTP id 63E973A3C17 for ; Mon, 1 Nov 2004 15:49:57 +0000 (GMT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iA1Fnvqg005031 for ; Mon, 1 Nov 2004 10:49:57 -0500 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iA1Fnvr16286 for ; Mon, 1 Nov 2004 10:49:57 -0500 Received: from el-vadimo.boston.redhat.com (el-vadimo.boston.redhat.com [172.16.80.100]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id iA1FntFE006492 for ; Mon, 1 Nov 2004 10:49:56 -0500 From: Vadim Nasardinov Organization: Red Hat / Westford To: pgsql-jdbc@postgresql.org Subject: code duplication (was: Re: General Parser) Date: Mon, 1 Nov 2004 10:45:36 -0500 User-Agent: KMail/1.5.4 References: <200411010341.28499.kenobi@halifax.rwth-aachen.de> <41861A10.1000607@opencloud.com> In-Reply-To: <41861A10.1000607@opencloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411011045.36580@vadim.nasardinov> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/6 X-Sequence-Number: 11428 On Monday 01 November 2004 06:12, Oliver Jowett wrote: > if only because it reduces code duplication. Speaking of which, I ran CPD on the source tree and found a few cases of copied and pasted code. The results are posted here: http://people.redhat.com/~vadimn/scratch/pgsql-jdbc/pgjdbc-cpd-brief.txt http://people.redhat.com/~vadimn/scratch/pgsql-jdbc/pgjdbc-cpd-full.txt I haven't had a chance to try and assess how difficult it would be to factor out the duplicated chunks. Vadim