This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: BigInteger private method/fields


Folks,
I've committed the following minor mod to correct the private/public 
nature of a couple fields and a method in java.math.BigInteger.
--warrenl


2000-02-24  Warren Levy  <warrenl@cygnus.com>

	* java/math/BigInteger.java(ival): Made private.
	(words): Ditto.
	(neg): Ditto.


Index: java/math/BigInteger.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/math/BigInteger.java,v
retrieving revision 1.3
diff -u -p -r1.3 BigInteger.java
--- BigInteger.java	2000/02/14 10:23:29	1.3
+++ BigInteger.java	2000/02/25 03:57:04
@@ -35,8 +35,8 @@ public class BigInteger extends Number i
    * If words == null, the ival is the value of this BigInteger.
    * Otherwise, the first ival elements of words make the value
    * of this BigInteger, stored in little-endian order, 2's-complement form. */
-  public int ival;
-  public int[] words;
+  private int ival;
+  private int[] words;
 
 
   /** We pre-allocate integers in the range minFixNum..maxFixNum. */
@@ -1779,7 +1779,7 @@ public class BigInteger extends Number i
     return abs(this);
   }
 
-  public static BigInteger neg(BigInteger x)
+  private static BigInteger neg(BigInteger x)
   {
     if (x.words == null && x.ival != Integer.MIN_VALUE)
       return make(- x.ival);






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]