commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1296563 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java
Date Sat, 03 Mar 2012 02:23:39 GMT
Author: erans
Date: Sat Mar  3 02:23:39 2012
New Revision: 1296563

URL: http://svn.apache.org/viewvc?rev=1296563&view=rev
Log:
Variable visibility: "protected" -> "private".

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

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java?rev=1296563&r1=1296562&r2=1296563&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java
Sat Mar  3 02:23:39 2012
@@ -90,7 +90,7 @@ public class ResizableDoubleArray implem
      * contracted to fit the number of elements contained in the element
      *  array + 1.
      */
-    protected float contractionCriteria = 2.5f;
+    private float contractionCriteria = 2.5f;
 
     /**
      * The expansion factor of the array.  When the array needs to be expanded,
@@ -100,30 +100,30 @@ public class ResizableDoubleArray implem
      * <code>internalArray.length + expansionFactor</code> if
      * <code>expansionMode</code> is set to ADDITIVE_MODE.
      */
-    protected float expansionFactor = 2.0f;
+    private float expansionFactor = 2.0f;
 
     /**
      * Determines whether array expansion by <code>expansionFactor</code>
      * is additive or multiplicative.
      */
-    protected int expansionMode = MULTIPLICATIVE_MODE;
+    private int expansionMode = MULTIPLICATIVE_MODE;
 
     /**
      * The initial capacity of the array.  Initial capacity is not exposed as a
      * property as it is only meaningful when passed to a constructor.
      */
-    protected int initialCapacity = 16;
+    private int initialCapacity = 16;
 
     /**
      * The internal storage array.
      */
-    protected double[] internalArray;
+    private double[] internalArray;
 
     /**
      * The number of addressable elements in the array.  Note that this
      * has nothing to do with the length of the internal storage array.
      */
-    protected int numElements = 0;
+    private int numElements = 0;
 
     /**
      * The position of the first addressable element in the internal storage
@@ -131,7 +131,7 @@ public class ResizableDoubleArray implem
      * internalArray[startIndex],...,internalArray[startIndex + numElements -1]
      * </code>
      */
-    protected int startIndex = 0;
+    private int startIndex = 0;
 
     /**
      * Create a ResizableArray with default properties.



Mime
View raw message