commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r758912 - in /commons/proper/math/trunk: ./ src/java/org/apache/commons/math/distribution/ src/java/org/apache/commons/math/linear/
Date Thu, 26 Mar 2009 23:00:27 GMT
Author: luc
Date: Thu Mar 26 23:00:27 2009
New Revision: 758912

URL: http://svn.apache.org/viewvc?rev=758912&view=rev
Log:
fixed checkstyle and findbugs errors

Modified:
    commons/proper/math/trunk/findbugs-exclude-filter.xml
    commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/linear/RealVector.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealVector.java

Modified: commons/proper/math/trunk/findbugs-exclude-filter.xml
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/findbugs-exclude-filter.xml?rev=758912&r1=758911&r2=758912&view=diff
==============================================================================
--- commons/proper/math/trunk/findbugs-exclude-filter.xml (original)
+++ commons/proper/math/trunk/findbugs-exclude-filter.xml Thu Mar 26 23:00:27 2009
@@ -27,7 +27,7 @@
   <!--  which already know about limited precision of the double numbers -->
   <Match>
     <Class name="org.apache.commons.math.optimization.univariate.BrentOptimizer" />
-    <Method name="localMin" params="double,double,double,double,org.apache.commons.math.analysis.UnivariateRealFunction"
returns="double" />
+    <Method name="localMin" params="org.apache.commons.math.analysis.UnivariateRealFunction,org.apache.commons.math.optimization.GoalType,double,double,double,double"
returns="double" />
     <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
   </Match>
   <Match>
@@ -44,7 +44,6 @@
     <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
   </Match>
 
-
   <!-- The following equality test is intentional and needed for rounding purposes -->
   <Match>
     <Class name="org.apache.commons.math.util.MathUtils" />

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java?rev=758912&r1=758911&r2=758912&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java
(original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java
Thu Mar 26 23:00:27 2009
@@ -66,7 +66,7 @@
         // subclasses can overide if there is a better method.
         UnivariateRealFunction rootFindingFunction =
             new UnivariateRealFunction() {
-
+            private static final long serialVersionUID = 1043729002768873023L;
             public double value(double x) throws FunctionEvaluationException {
                 try {
                     return cumulativeProbability(x) - p;

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/linear/RealVector.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/linear/RealVector.java?rev=758912&r1=758911&r2=758912&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/linear/RealVector.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/linear/RealVector.java Thu
Mar 26 23:00:27 2009
@@ -16,6 +16,8 @@
  */
 package org.apache.commons.math.linear;
 
+import java.io.Serializable;
+
 /**
  * Interface defining a real-valued vector with basic algebraic operations.
  * <p>
@@ -39,7 +41,7 @@
  * @version $Revision$ $Date$
  * @since 2.0
  */
-public interface RealVector {
+public interface RealVector extends Serializable {
 
     /**
      * Returns a (deep) copy of this.

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealVector.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealVector.java?rev=758912&r1=758911&r2=758912&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealVector.java
(original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealVector.java
Thu Mar 26 23:00:27 2009
@@ -27,6 +27,9 @@
 */
 public class SparseRealVector implements RealVector {
 
+    /** Serializable version identifier. */
+    private static final long serialVersionUID = 8772222695580707260L;
+
     /** Default Tolerance for having a value considered zero. */
     public static final double DEFAULT_ZERO_TOLERANCE = 1.0e-12;
 



Mime
View raw message