commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1306277 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/FastMathCalc.java
Date Wed, 28 Mar 2012 11:55:06 GMT
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



Mime
View raw message