commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1410658 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java
Date Sat, 17 Nov 2012 01:13:37 GMT
Author: erans
Date: Sat Nov 17 01:13:37 2012
New Revision: 1410658

URL: http://svn.apache.org/viewvc?rev=1410658&view=rev
Log:
MATH-894
Deprecated setter for fields that should be declared as "final".

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java?rev=1410658&r1=1410657&r2=1410658&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java
Sat Nov 17 01:13:37 2012
@@ -906,7 +906,9 @@ public class ResizableDoubleArray implem
      * @param contractionCriteria contraction criteria
      * @throws MathIllegalArgumentException if the contractionCriteria is less than
      *         the expansionCriteria.
+     * @deprecated As of 3.1 (to be removed in 4.0 as field will become "final").
      */
+    @Deprecated
     public void setContractionCriteria(float contractionCriteria)
         throws MathIllegalArgumentException {
         checkContractExpand(contractionCriteria, getExpansionFactor());
@@ -959,7 +961,9 @@ public class ResizableDoubleArray implem
      * @param expansionFactor the new expansion factor value.
      * @throws MathIllegalArgumentException if expansionFactor is <= 1 or greater
      * than contractionFactor
+     * @deprecated As of 3.1 (to be removed in 4.0 as field will become "final").
      */
+    @Deprecated
     public void setExpansionFactor(float expansionFactor) throws MathIllegalArgumentException
{
         checkContractExpand(getContractionCriterion(), expansionFactor);
         // The check above verifies that the expansion factor is > 1.0;
@@ -998,7 +1002,9 @@ public class ResizableDoubleArray implem
      * Sets the {@link ExpansionMode expansion mode}.
      *
      * @param expansionMode Expansion mode to use for resizing the array.
+     * @deprecated As of 3.1 (to be removed in 4.0 as field will become "final").
      */
+    @Deprecated
     public void setExpansionMode(ExpansionMode expansionMode) {
         this.expansionMode = expansionMode;
     }



Mime
View raw message