commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r627989 - /commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/SimpleEstimationProblem.java
Date Fri, 15 Feb 2008 10:04:03 GMT
Author: luc
Date: Fri Feb 15 02:04:02 2008
New Revision: 627989

URL: http://svn.apache.org/viewvc?rev=627989&view=rev
Log:
changed ArrayListe to List
made fields final

Modified:
    commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/SimpleEstimationProblem.java

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/SimpleEstimationProblem.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/SimpleEstimationProblem.java?rev=627989&r1=627988&r2=627989&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/SimpleEstimationProblem.java
(original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/SimpleEstimationProblem.java
Fri Feb 15 02:04:02 2008
@@ -19,6 +19,7 @@
 
 import java.util.ArrayList;
 import java.util.Iterator;
+import java.util.List;
 
 /**
  * Simple implementation of the {@link EstimationProblem
@@ -64,7 +65,7 @@
     public EstimatedParameter[] getUnboundParameters() {
 
         // filter the unbound parameters
-        ArrayList unbound = new ArrayList(parameters.size());
+        List unbound = new ArrayList(parameters.size());
         for (Iterator iterator = parameters.iterator(); iterator.hasNext();) {
             EstimatedParameter p = (EstimatedParameter) iterator.next();
             if (! p.isBound()) {
@@ -101,9 +102,9 @@
     }
 
     /** Estimated parameters. */
-    private ArrayList parameters;
+    private final List parameters;
 
     /** Measurements. */
-    private ArrayList measurements;
+    private final List measurements;
 
 }



Mime
View raw message