You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2012/03/28 13:55:06 UTC

svn commit: r1306277 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/FastMathCalc.java

Author: sebb
Date: Wed Mar 28 11:55:05 2012
New Revision: 1306277

URL: http://svn.apache.org/viewvc?rev=1306277&view=rev
Log:
Avoid PMD syntax error by using alternate array syntax

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/FastMathCalc.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/FastMathCalc.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/FastMathCalc.java?rev=1306277&r1=1306276&r2=1306277&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/FastMathCalc.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/FastMathCalc.java Wed Mar 28 11:55:05 2012
@@ -604,7 +604,7 @@ class FastMathCalc {
         checkLen(expectedLen, array2d.length);
         out.println(TABLE_START_DECL + " ");
         int i = 0;
-        for(double array[] : array2d) {
+        for(double[] array : array2d) { // "double array[]" causes PMD parsing error
             out.print("        {");
             for(double d : array) { // assume inner array has very few entries
                 out.printf("%-25.25s", format(d)); // multiple entries per line