commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [1/2] [math] Variable can be "final".
Date Sun, 30 Aug 2015 16:59:29 GMT
Repository: commons-math
Updated Branches:
  refs/heads/master 9b3cce44e -> ad7d149bc


Variable can be "final".


Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/08cc26e7
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/08cc26e7
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/08cc26e7

Branch: refs/heads/master
Commit: 08cc26e70bf145aca293d55fce12aef835263f53
Parents: 9b3cce4
Author: Gilles <erans@apache.org>
Authored: Sun Aug 30 18:48:39 2015 +0200
Committer: Gilles <erans@apache.org>
Committed: Sun Aug 30 18:48:39 2015 +0200

----------------------------------------------------------------------
 .../apache/commons/math4/ml/neuralnet/twod/NeuronSquareMesh2D.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/08cc26e7/src/main/java/org/apache/commons/math4/ml/neuralnet/twod/NeuronSquareMesh2D.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/ml/neuralnet/twod/NeuronSquareMesh2D.java
b/src/main/java/org/apache/commons/math4/ml/neuralnet/twod/NeuronSquareMesh2D.java
index dd6cf6a..d3c233b 100644
--- a/src/main/java/org/apache/commons/math4/ml/neuralnet/twod/NeuronSquareMesh2D.java
+++ b/src/main/java/org/apache/commons/math4/ml/neuralnet/twod/NeuronSquareMesh2D.java
@@ -324,7 +324,7 @@ public class NeuronSquareMesh2D implements Serializable {
             }
         }
 
-        int rowOffset = 0;
+        final int rowOffset;
         switch (alongColDir) {
         case UP:
             rowOffset = -1;


Mime
View raw message