Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 11102 invoked from network); 27 Mar 2011 16:48:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Mar 2011 16:48:20 -0000 Received: (qmail 74146 invoked by uid 500); 27 Mar 2011 16:48:19 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 74040 invoked by uid 500); 27 Mar 2011 16:48:19 -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 74032 invoked by uid 99); 27 Mar 2011 16:48:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Mar 2011 16:48:19 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [194.206.126.239] (HELO smtp.nordnet.fr) (194.206.126.239) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Mar 2011 16:48:10 +0000 Received: from lehrin (175.203.141.79.dynamic.adsl.abo.nordnet.fr [79.141.203.175]) by smtp.nordnet.fr (Postfix) with ESMTP id 4E9D534074 for ; Sun, 27 Mar 2011 18:47:48 +0200 (CEST) Received: by lehrin (Postfix, from userid 5001) id 814EC4073; Sun, 27 Mar 2011 18:47:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lehrin.spaceroots.local X-Spam-Level: Received: from lehrin.spaceroots.local (lehrin.spaceroots.local [127.0.0.1]) by lehrin (Postfix) with ESMTP id 416494071 for ; Sun, 27 Mar 2011 18:47:48 +0200 (CEST) Message-ID: <4D8F6A34.4020005@free.fr> Date: Sun, 27 Mar 2011 18:47:48 +0200 From: Luc Maisonobe User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 MIME-Version: 1.0 To: Commons Developers List Subject: [math] cleaning code X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,FREEMAIL_FROM autolearn=unavailable version=3.3.1 Hi all, I have squashed a number of findbugs and checkstyle warnings introduced by recent changes (more than one hundred). There are a few remaining bugs for which I would like some ideas. Checkstyle errors: In class MannWhitneyUTestImpl, the javadoc for private method calculateAsymptoticPValue has a N parameter in the Javadoc which is wrong and two n1 and n2 parameters in the signature that are not documented. I don't know the exact meaning of n1 and n2, could someone fix this javadoc ? In class MathUtils, method round(double x, int scale, int roundingMethod) we catch RuntimeException to wrap it into MathRuntimeException. I think we should not and should simply let the RuntimeException go up. What do you think ? Findbugs errors: In CMAESOptimizer constructor, we directly store references to the inputSigma and boundaries parameters in internal fields, thus exposing internal representation. I think we should either clone the arrays or document the fact we will reference user arrays and set up a findbug exclude filter. What do you think ? In CMAESOptimizer DoubleIndex class, there is a compareTo method but no equals method (and if we add one, there will be no hashCode method), should we add them ? SerializablePair extends Pair which is not serializable and does not have an accessible void constructor. Should we add such a constructor (perhaps setting the two fields to null), should we have SerializablePair not extend Pair or are we sure this does work correctly and we should add a findbugs excude filter ? best regards, Luc --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org