This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: BigInteger private method/fields
- To: java-patches at sourceware dot cygnus dot com
- Subject: Patch: BigInteger private method/fields
- From: Warren Levy <warrenl at cygnus dot com>
- Date: Thu, 24 Feb 2000 20:00:32 -0800 (PST)
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);