Collator.java (decomposeCharacter, [...]): Now package-private, not protected.

* java/text/Collator.java (decomposeCharacter, decmp, strength):
	Now package-private, not protected.
	* java/text/DateFormatSymbols.java (equals): Now private.
	* java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
	* java/util/BitSet.java: Class no longer final.
	* java/util/Set.java (toArray(Object[])): New method.

From-SVN: r38075
This commit is contained in:
Tom Tromey 2000-12-06 21:14:14 +00:00 committed by Tom Tromey
parent f0bffd9921
commit 456ffe4c68
6 changed files with 17 additions and 8 deletions

View file

@ -1,3 +1,12 @@
2000-12-05 Tom Tromey <tromey@redhat.com>
* java/text/Collator.java (decomposeCharacter, decmp, strength):
Now package-private, not protected.
* java/text/DateFormatSymbols.java (equals): Now private.
* java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
* java/util/BitSet.java: Class no longer final.
* java/util/Set.java (toArray(Object[])): New method.
2000-12-04 Warren Levy <warrenl@redhat.com>
* java/util/TimeZone.java (getAvailableIDs): Activated commented

View file

@ -132,9 +132,9 @@ public abstract class Collator implements Comparator, Cloneable
}
// Decompose a single character and append results to the buffer.
protected native final void decomposeCharacter (char c, StringBuffer buf);
native final void decomposeCharacter (char c, StringBuffer buf);
// These names are fixed by the serialization spec.
protected int decmp;
protected int strength;
int decmp;
int strength;
}

View file

@ -265,7 +265,7 @@ public class DateFormatSymbols extends Object
}
/* Does a "deep" equality test - recurses into arrays. */
protected static boolean equals (Object x, Object y)
private static boolean equals (Object x, Object y)
{
if (x == y)
return true;

View file

@ -72,7 +72,7 @@ public final class DecimalFormatSymbols implements Cloneable, Serializable
return def;
}
public final char safeGetChar (ResourceBundle bundle,
private final char safeGetChar (ResourceBundle bundle,
String name, char def)
{
String r = null;

View file

@ -45,7 +45,7 @@ import java.io.Serializable;
* @date October 23, 1998.
* @status API complete to JDK 1.3.
*/
public final class BitSet implements Cloneable, Serializable
public class BitSet implements Cloneable, Serializable
{
/**
* Create a new empty bit set.

View file

@ -1,5 +1,5 @@
/* Set.java -- A collection that prohibits duplicates
Copyright (C) 1998 Free Software Foundation, Inc.
Copyright (C) 1998, 2000 Free Software Foundation, Inc.
This file is part of GNU Classpath.