commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1421949 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/differentiation/DSCompiler.java
Date Fri, 14 Dec 2012 15:53:34 GMT
Author: luc
Date: Fri Dec 14 15:53:32 2012
New Revision: 1421949

URL: http://svn.apache.org/viewvc?rev=1421949&view=rev
Log:
Fixed PMD warnings.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/differentiation/DSCompiler.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/differentiation/DSCompiler.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/differentiation/DSCompiler.java?rev=1421949&r1=1421948&r2=1421949&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/differentiation/DSCompiler.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/differentiation/DSCompiler.java
Fri Dec 14 15:53:32 2012
@@ -160,7 +160,7 @@ public class DSCompiler {
 
         this.parameters = parameters;
         this.order      = order;
-        this.sizes      = compileSizes(parameters, order, valueCompiler, derivativeCompiler);
+        this.sizes      = compileSizes(parameters, order, valueCompiler);
         this.derivativesIndirection =
                 compileDerivativesIndirection(parameters, order,
                                               valueCompiler, derivativeCompiler);
@@ -173,7 +173,7 @@ public class DSCompiler {
         this.compIndirection =
                 compileCompositionIndirection(parameters, order,
                                               valueCompiler, derivativeCompiler,
-                                              sizes, derivativesIndirection, lowerIndirection);
+                                              sizes, derivativesIndirection);
 
     }
 
@@ -228,12 +228,10 @@ public class DSCompiler {
      * @param parameters number of free parameters
      * @param order derivation order
      * @param valueCompiler compiler for the value part
-     * @param derivativeCompiler compiler for the derivative part
      * @return sizes array
      */
     private static int[][] compileSizes(final int parameters, final int order,
-                                        final DSCompiler valueCompiler,
-                                        final DSCompiler derivativeCompiler) {
+                                        final DSCompiler valueCompiler) {
 
         final int[][] sizes = new int[parameters + 1][order + 1];
         if (parameters == 0) {
@@ -401,15 +399,13 @@ public class DSCompiler {
      * @param derivativeCompiler compiler for the derivative part
      * @param sizes sizes array
      * @param derivativesIndirection derivatives indirection array
-     * @param lowerIndirection lower derivatives indirection array
      * @return multiplication indirection array
      */
     private static int[][][] compileCompositionIndirection(final int parameters, final int
order,
                                                         final DSCompiler valueCompiler,
                                                         final DSCompiler derivativeCompiler,
                                                         final int[][] sizes,
-                                                        final int[][] derivativesIndirection,
-                                                        final int[] lowerIndirection) {
+                                                        final int[][] derivativesIndirection)
{
 
         if ((parameters == 0) || (order == 0)) {
             return new int[][][] { { { 1, 0 } } };



Mime
View raw message