Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 177EE9CD8 for ; Thu, 10 May 2012 18:28:02 +0000 (UTC) Received: (qmail 73150 invoked by uid 500); 10 May 2012 18:28:01 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 73066 invoked by uid 500); 10 May 2012 18:28:01 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 73056 invoked by uid 99); 10 May 2012 18:28:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 18:28:01 +0000 X-ASF-Spam-Status: No, hits=3.6 required=5.0 tests=FREEMAIL_FORGED_REPLYTO,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,REPTO_QUOTE_YAHOO,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [72.30.239.144] (HELO nm39-vm0.bullet.mail.bf1.yahoo.com) (72.30.239.144) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 10 May 2012 18:27:54 +0000 Received: from [98.139.215.140] by nm39.bullet.mail.bf1.yahoo.com with NNFMP; 10 May 2012 18:27:33 -0000 Received: from [98.139.212.205] by tm11.bullet.mail.bf1.yahoo.com with NNFMP; 10 May 2012 18:27:33 -0000 Received: from [127.0.0.1] by omp1014.mail.bf1.yahoo.com with NNFMP; 10 May 2012 18:27:33 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 136592.85478.bm@omp1014.mail.bf1.yahoo.com Received: (qmail 91758 invoked by uid 60001); 10 May 2012 18:27:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.br; s=s1024; t=1336674453; bh=LWZ/QpvENJh8yYUyV61RXwR5c22kXfVOGcNEgs5PPQY=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RsOlghiA7Wfj59rUjPzwvp6jDNDlbEO8JWvq2B25PHnS8rJCP/ZBAnt24+BooOO9Kd3ebiDfHdnWPdHs12Z1XjEFInYYp2f+N2p+0kYonpPtU8DPZhzcubVQwqv0N9HFWoeHLZhL73JrMRrYI92bBwIPtsiOZ4rI9kD91EqEVs8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=eC/EbHOJNG9fm03VzlrvNfrPU4ersVhYKGBksGNFuRsFe6A5SyNgJ1THg3J4F3rTK3BJI0DPYmDUW4m0HLqWmgLx7eYPSC16u3ItLHU3ovPWLDr4KEe1VQZ9YxqPZJ66inYTUj9E5HSWWjzIkzVTQrofH00Cmpn3QUhJsIRZ99U=; X-YMail-OSG: G3tqYskVM1mm7U96LHkTXLiv8k53dNgMWZ1l2D3JoXTOSf2 lpzjH8k2EBxOoZKlNG14BIDt669Etr58scmQK_C3orxk9aQSLx0hV63obbik QGPvrqXLLlTwyAfJCXYHPCHpxD1axA7YyXehhoD4PaX8ntuK8tL2m8MkpMbf 7Jqq54SaT_8zNIIGpZvmYtN6ZkFURqKWkovcllz86.hpzcuu9ZHd7sr1CmFs v0HX4SRrZtx6McW78TVk1raYjsEgVgleiA8V15AsbQlyZGXoABHoNsCTrLFT 5aGdaNQFN2UThsJtMXJYwo7WfEO3oZjOm5vwtQ_Asvr3pkH2yDx7_pSGZIrw GSbT1RYcnjKZ7wq16.dYDLSlVjKTleWJOW5Y5pTy2DGoxCJLvLFeqWZN8G_y laky89J04N9OR7eHVzKBQ6Mr4rfGAlGWXVylqmv1zZFiKtSUqnahdh7W2y6d HY5L76zXgY_a9xGUERX6HyMRqj1LX9OkBK3pNj27HEVvsyN4oFCDQ1rz7uIR ZTHIpJPN4GbuK2BqryYhUI1P1dEFICflTRP8AioK3pdUu0DSokSso7N3Zn5L JZ.lnOISnaK7YoyAXTW0troUT6wex7clubJMGisyvv0VhVSWqrzGD5bcESu0 sQMuk3Un0c3l7ycfbMuD.cRWXWQg7bAZo9Tcj5xP4uDCus1WJwCpynWheojM ubsQxauWZD7UCvDR1mSDESEvUIxAymIQYMy9YcMuf6zA6yf3EGzfkNT4DPVK CQ15bNt6jPSS1R0IhbQS7QfpneWeNHBJTEV8VfgZOoBqArt_GCUWU_dtUSts qVnbJfQ-- Received: from [189.120.1.165] by web161202.mail.bf1.yahoo.com via HTTP; Thu, 10 May 2012 11:27:33 PDT X-Mailer: YahooMailWebService/0.8.118.349524 Message-ID: <1336674453.81058.YahooMailNeo@web161202.mail.bf1.yahoo.com> Date: Thu, 10 May 2012 11:27:33 -0700 (PDT) From: "Bruno P. Kinoshita" Reply-To: "Bruno P. Kinoshita" Subject: [functor] Remove duplicated equals() methods To: Commons List MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi all,=A0=0A=0AWhile I am still trying to find time to work on a proposal = for enhancements in the generators API in [functor] (https://issues.apache.= org/jira/browse/FUNCTOR-14), I'm reviewing other pending issues, including = the one regarding test coverage.=A0=0A=0AThe comparators API seemed to be l= acking tests for some decision branches. But looking closely at the code, I= realized that there were two equals code in some comparator functors. Then= I set up a Sonar instance to scan the code, and found that it is common in= many other parts of the code (http://66.228.56.222/sonar/drilldown/violati= ons/org.apache.commons:commons-functor?severity=3DCRITICAL).=0A=0ADoes anyb= ody know if there is some reason for having both equals(Object that) and eq= uals(SomeFunctor that)? I think we could merge both methods in only one.= The Generators in [functor] have only one equals() method, and compares ag= ainst this, uses instanceof, etc. I had a quick look on [math3] and [lang3]= , and looks like they both use only one equals() method, compares against t= his, uses instaceof, etc.=0A=0AIf there is no objection here, I could creat= e a patch for this in Jira, merging both equals() methods in one :-) Then a= fter this I will proceed writing tests to increase the test coverage (https= ://issues.apache.org/jira/browse/FUNCTOR-12).=0A=0AThanks in advance!=A0=0A= =0ABruno P. Kinoshita=0Ahttp://kinoshita.eti.br=0Ahttp://tupilabs.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org