Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 27120 invoked from network); 1 Feb 2011 18:56:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2011 18:56:51 -0000 Received: (qmail 98128 invoked by uid 500); 1 Feb 2011 18:56:51 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 97890 invoked by uid 500); 1 Feb 2011 18:56:49 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 97675 invoked by uid 99); 1 Feb 2011 18:56:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 18:56:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 18:56:46 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 83BE923889EB; Tue, 1 Feb 2011 18:56:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1066133 - /commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/stat/inference/TestUtils.java Date: Tue, 01 Feb 2011 18:56:25 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110201185625.83BE923889EB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebb Date: Tue Feb 1 18:56:25 2011 New Revision: 1066133 URL: http://svn.apache.org/viewvc?rev=1066133&view=rev Log: MATH-505 TestUtils is thread-hostile - deprecate the offending methods Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/stat/inference/TestUtils.java Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/stat/inference/TestUtils.java URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/stat/inference/TestUtils.java?rev=1066133&r1=1066132&r2=1066133&view=diff ============================================================================== --- commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/stat/inference/TestUtils.java (original) +++ commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/stat/inference/TestUtils.java Tue Feb 1 18:56:25 2011 @@ -24,6 +24,11 @@ import org.apache.commons.math.stat.desc * A collection of static methods to create inference test instances or to * perform inference tests. * + *

+ * The set methods are not compatible with using the class in multiple threads, + * and have therefore been deprecated (along with the getters). + * The setters and getters will be removed in version 3.0. + * * @since 1.1 * @version $Revision$ $Date$ */ @@ -56,7 +61,9 @@ public class TestUtils { * * @param chiSquareTest the new instance to use * @since 1.2 + * @deprecated 2.2 will be removed in 3.0 - not compatible with use from multiple threads */ + @Deprecated public static void setChiSquareTest(TTest chiSquareTest) { TestUtils.tTest = chiSquareTest; } @@ -65,7 +72,9 @@ public class TestUtils { * Return a (singleton) TTest instance. Does not create a new instance. * * @return a TTest instance + * @deprecated 2.2 will be removed in 3.0 */ + @Deprecated public static TTest getTTest() { return tTest; } @@ -75,7 +84,9 @@ public class TestUtils { * * @param chiSquareTest the new instance to use * @since 1.2 + * @deprecated 2.2 will be removed in 3.0 - not compatible with use from multiple threads */ + @Deprecated public static void setChiSquareTest(ChiSquareTest chiSquareTest) { TestUtils.chiSquareTest = chiSquareTest; } @@ -84,7 +95,9 @@ public class TestUtils { * Return a (singleton) ChiSquareTest instance. Does not create a new instance. * * @return a ChiSquareTest instance + * @deprecated 2.2 will be removed in 3.0 */ + @Deprecated public static ChiSquareTest getChiSquareTest() { return chiSquareTest; } @@ -94,7 +107,9 @@ public class TestUtils { * * @param unknownDistributionChiSquareTest the new instance to use * @since 1.2 + * @deprecated 2.2 will be removed in 3.0 - not compatible with use from multiple threads */ + @Deprecated public static void setUnknownDistributionChiSquareTest(UnknownDistributionChiSquareTest unknownDistributionChiSquareTest) { TestUtils.unknownDistributionChiSquareTest = unknownDistributionChiSquareTest; } @@ -103,7 +118,9 @@ public class TestUtils { * Return a (singleton) UnknownDistributionChiSquareTest instance. Does not create a new instance. * * @return a UnknownDistributionChiSquareTest instance + * @deprecated 2.2 will be removed in 3.0 */ + @Deprecated public static UnknownDistributionChiSquareTest getUnknownDistributionChiSquareTest() { return unknownDistributionChiSquareTest; } @@ -113,7 +130,9 @@ public class TestUtils { * * @param oneWayAnova the new instance to use * @since 1.2 + * @deprecated 2.2 will be removed in 3.0 - not compatible with use from multiple threads */ + @Deprecated public static void setOneWayAnova(OneWayAnova oneWayAnova) { TestUtils.oneWayAnova = oneWayAnova; } @@ -123,7 +142,9 @@ public class TestUtils { * * @return a OneWayAnova instance * @since 1.2 + * @deprecated 2.2 will be removed in 3.0 */ + @Deprecated public static OneWayAnova getOneWayAnova() { return oneWayAnova; }