commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject cvs commit: jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/moment Variance.java
Date Sun, 11 Jul 2004 23:39:09 GMT
psteitz     2004/07/11 16:39:08

  Modified:    math/src/java/org/apache/commons/math/stat/univariate/moment
                        Variance.java
  Log:
  Removed redundant null check.
  
  Revision  Changes    Path
  1.27      +1 -4      jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/moment/Variance.java
  
  Index: Variance.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/moment/Variance.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- Variance.java	11 Jul 2004 18:38:12 -0000	1.26
  +++ Variance.java	11 Jul 2004 23:39:08 -0000	1.27
  @@ -231,9 +231,6 @@
        * @throws IllegalArgumentException if the array is null
        */
       public double evaluate(final double[] values, final double mean) {
  -        if (values == null) {
  -            throw new IllegalArgumentException("input values array is null");
  -        }
           return evaluate(values, mean, 0, values.length);
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message