You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2013/08/01 15:48:57 UTC

svn commit: r1509234 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/SymmetricGaussIntegrator.java

Author: erans
Date: Thu Aug  1 13:48:57 2013
New Revision: 1509234

URL: http://svn.apache.org/r1509234
Log:
Cleared "FindBugs" warnings.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/SymmetricGaussIntegrator.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/SymmetricGaussIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/SymmetricGaussIntegrator.java?rev=1509234&r1=1509233&r2=1509234&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/SymmetricGaussIntegrator.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/SymmetricGaussIntegrator.java Thu Aug  1 13:48:57 2013
@@ -90,13 +90,12 @@ public class SymmetricGaussIntegrator ex
             s = t;
         }
 
-        if (ruleLength % 2 == 1) {
+        if (ruleLength % 2 != 0) {
             final double w = getWeight(iMax);
 
             final double y = w * f.value(0d) - c;
             final double t = s + y;
 
-            c = (t - s) - y;
             s = t;
         }