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 6D4AA799E for ; Wed, 20 Jul 2011 18:46:18 +0000 (UTC) Received: (qmail 49672 invoked by uid 500); 20 Jul 2011 18:46:17 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 49485 invoked by uid 500); 20 Jul 2011 18:46:17 -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 49477 invoked by uid 99); 20 Jul 2011 18:46:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 18:46:17 +0000 X-ASF-Spam-Status: No, hits=4.0 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gsterijevski@gmail.com designates 209.85.220.171 as permitted sender) Received: from [209.85.220.171] (HELO mail-vx0-f171.google.com) (209.85.220.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 18:46:10 +0000 Received: by vxh11 with SMTP id 11so465716vxh.30 for ; Wed, 20 Jul 2011 11:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=x5Z9gT7KWuJiJnlSw9Lmr8bDLT08z7LFtTCgIz/ZkiY=; b=X/KYEc+azrOwHAnQl7nHVYXtLiMwFagiJR774NBJ23GtvrwkHzb1kwnntzy7aTSGKr Gqt1HWcDnzil3S6K1luuEG3pgxC1cVShh4LxDPDJ3CmX+wceQyMiVSmWIXkx27Yv59e3 4+0HqE0z65WLJyKwbF77iiEfTnPp/DSBorBOI= MIME-Version: 1.0 Received: by 10.52.76.170 with SMTP id l10mr901079vdw.77.1311187549797; Wed, 20 Jul 2011 11:45:49 -0700 (PDT) Received: by 10.220.170.205 with HTTP; Wed, 20 Jul 2011 11:45:49 -0700 (PDT) In-Reply-To: <4E271B13.1000509@gmail.com> References: <4E26C41C.30104@free.fr> <3A5A4B8C-CBBC-46B0-A298-081161EE7FA5@gmail.com> <4E271B13.1000509@gmail.com> Date: Wed, 20 Jul 2011 13:45:49 -0500 Message-ID: Subject: Re: [math] many warnings RegressionResults and MillerUpdatingRegression From: Greg Sterijevski To: Commons Developers List Content-Type: multipart/alternative; boundary=bcaec501604323bcd904a884a4ea --bcaec501604323bcd904a884a4ea Content-Type: text/plain; charset=ISO-8859-1 The errors concern the copy of the reference I am making. In the constructor of the RegressionResults object there is the boolean flag "copyData".This governs whether the user wants to store a copy of the data or just a copy of the references. What I had hoped to do is avoid copying potentially large arrays. In most cases, the user should never be between the regression internals and the RegressionResults object. That being said, I recognize that a user might want to instantiate RegressionResults with data from somewhere else (eg not from a regression source). Then the error report is absolutely correct. The mutable array could have its values changed... I am reticent about calling clone because, with primitive arrays, it is a copy. We could just make the behavior of the constructor to always copy the data. That would mean changing the signature of the method (copyData would be dropped). Can anyone think of better way to do this? Thanks, -Greg On Wed, Jul 20, 2011 at 1:14 PM, Phil Steitz wrote: > On 7/20/11 9:56 AM, Greg Sterijevski wrote: > > Having discovered the check-results.xml file, I will work through them > > all... (the ones I contributed). -Greg > > Thanks, Greg! > > The easiest way to check everything is to run "mvn site" from the > root of the full checkout and then look at the reports in the > locally generated website. The reports (both checkstyle and > findbugs) are under "project reports". > > Phil > > > > On Wed, Jul 20, 2011 at 10:27 AM, Greg Sterijevski > > wrote: > > > >> Yes, sorry about the mess I created. I will go back and add the javadoc. > >> > >> -Greg > >> > >> > >> On Wed, Jul 20, 2011 at 8:58 AM, Phil Steitz >wrote: > >> > >>> Ack. All of the warnings are either missing javadoc or exception > string > >>> warnings. I was holding off fixing the latter until we had a couple of > >>> impls to compare so we could see the full range of errors we were > likely to > >>> see. I can probably do that now, though. Will add to the thread on > >>> regression API refactoring and get something at least functional into > the > >>> code. As for the javadoc, thanks for volunteering, Greg :) > >>> > >>> > >>> > >>> On Jul 20, 2011, at 5:03 AM, Luc Maisonobe > wrote: > >>> > >>>> Hello all, > >>>> > >>>> Is seems there are many checkstyle and findbugs warnings in the > >>> RegressionResults and MillerUpdatingRegression classes. They are mainly > >>> missing javadoc, but also hard-coded exception messages and storing > array > >>> references in classes. > >>>> Greg, I think you provided the patch, could you have a look at this ? > >>>> > >>>> Luc > >>>> > >>>> --------------------------------------------------------------------- > >>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > >>>> For additional commands, e-mail: dev-help@commons.apache.org > >>>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > >>> For additional commands, e-mail: dev-help@commons.apache.org > >>> > >>> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --bcaec501604323bcd904a884a4ea--