You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2011/02/22 10:02:25 UTC
svn commit: r1073262 -
/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java
Author: luc
Date: Tue Feb 22 09:02:25 2011
New Revision: 1073262
URL: http://svn.apache.org/viewvc?rev=1073262&view=rev
Log:
fixed deprecation message to include the version of the change for getSparcity
fixed the since message to show the getSparsity has been introduced in 2.2
Modified:
commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java
Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java?rev=1073262&r1=1073261&r2=1073262&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java (original)
+++ commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java Tue Feb 22 09:02:25 2011
@@ -817,7 +817,7 @@ public class OpenMapRealVector extends A
/**
*
* @return the percentage of none zero elements as a decimal percent.
- * @deprecated Use the correctly spelled {@link #getSparsity()}
+ * @deprecated as of 2.2 replaced by the correctly spelled {@link #getSparsity()}
*/
@Deprecated
public double getSparcity() {
@@ -827,6 +827,7 @@ public class OpenMapRealVector extends A
/**
*
* @return the percentage of none zero elements as a decimal percent.
+ * @since 2.2
*/
public double getSparsity() {
return (double)entries.size()/(double)getDimension();