Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 77970 invoked from network); 5 Feb 2011 02:57:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Feb 2011 02:57:54 -0000 Received: (qmail 58558 invoked by uid 500); 5 Feb 2011 02:57:53 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 58196 invoked by uid 500); 5 Feb 2011 02:57:52 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 58178 invoked by uid 99); 5 Feb 2011 02:57:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Feb 2011 02:57:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Feb 2011 02:57:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A6AC41900B4 for ; Sat, 5 Feb 2011 02:57:30 +0000 (UTC) Date: Sat, 5 Feb 2011 02:57:30 +0000 (UTC) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Message-ID: <922628298.1326.1296874650679.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <433713909.3218.1296585509059.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (MATH-506) The static field ChiSquareTestImpl.distribution serves no purpose MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990893#comment-12990893 ] Phil Steitz commented on MATH-506: ---------------------------------- Agreed. Since the fix for MATH-349 this instance field is unnecessary. > The static field ChiSquareTestImpl.distribution serves no purpose > ----------------------------------------------------------------- > > Key: MATH-506 > URL: https://issues.apache.org/jira/browse/MATH-506 > Project: Commons Math > Issue Type: Bug > Affects Versions: 2.1, 3.0 > Reporter: Sebb > Priority: Minor > > The static field ChiSquareTestImpl.distribution serves no purpose. > There is a setter for it, but in every case where the field is used, it is first overwritten with a new value. > The field and the setter should be removed, and the methods that create a new instance should create a local variable instead. > For Math 2.1, the field can be removed and the setter deprecated. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira