diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-18 15:26:45 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-18 15:26:45 +0000 |
commit | cb0199f5f65be09b21a26385a28cf4a94a55c445 (patch) | |
tree | 9338ba46e1d50f05eca700161824c4a97dbb3435 /libjava/java/text | |
parent | 6047d32f8e80b410ac5c9d77d76ccb1fdfc2a537 (diff) | |
download | gcc-cb0199f5f65be09b21a26385a28cf4a94a55c445.tar.gz |
2004-11-18 Jeroen Frijters <address@bogus.example.com>
* java/lang/StackTraceElement.java: Made final.
* java/nio/channels/Channels.java: Added private constructor.
* java/rmi/Naming.java: Added private constructor.
* java/rmi/registry/LocateRegistry.java: Added private constructor.
* java/rmi/server/RMIClassLoader.java: Added private constructor.
* java/security/KeyPairGeneratorSpi.java
(clone): Made protected and simplified implementation.
* java/text/DateFormat.java
(allFields): Made package accessible.
* java/text/DecimalFormat.java
(formatInternal): Made private.
* java/text/Format.java
(formatInternal): Made private.
* java/util/logging/Handler.java: Made constructor protected.
* java/util/regex/Matcher.java: Made final.
* java/util/regex/Pattern.java: Made final.
* javax/crypto/CipherInputStream.java
(mark): Corrected mark parameter type (from long to int).
* javax/crypto/ExemptionMechanism.java
(finalize): Added.
* javax/crypto/Mac.java
(getMacLength): Made final.
(clone): Made final.
* javax/imageio/ImageIO.java: Added private constructor.
* javax/imageio/stream/ImageInputStreamImpl.java
(checkClosed): Made final.
* javax/net/ssl/SSLPermission.java: Made final.
* javax/print/DocFlavor.java
(hostEncoding): Added work-around to prevent the field from being
a compile time constant.
* javax/print/attribute/AttributeSetUtilities.java: Added private
constructor.
(UnmodifiableDocAttributeSet): Made private.
(UnmodifiablePrintJobAttributeSet): Made private.
(UnmodifiablePrintRequestAttributeSet): Made private.
(UnmodifiablePrintServiceAttributeSet): Made private.
(SynchronizedAttributeSet): Made private.
(SynchronizedDocAttributeSet): Made private.
(SynchronizedPrintJobAttributeSet): Made private.
(SynchronizedPrintRequestAttributeSet): Made private.
(SynchronizedPrintServiceAttributeSet): Made private.
* javax/security/auth/PrivateCredentialPermission.java: Made final.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90866 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/text')
-rw-r--r-- | libjava/java/text/DateFormat.java | 2 | ||||
-rw-r--r-- | libjava/java/text/DecimalFormat.java | 4 | ||||
-rw-r--r-- | libjava/java/text/Format.java | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/libjava/java/text/DateFormat.java b/libjava/java/text/DateFormat.java index 8b705663d68..6fe4461b030 100644 --- a/libjava/java/text/DateFormat.java +++ b/libjava/java/text/DateFormat.java @@ -137,7 +137,7 @@ public abstract class DateFormat extends Format implements Cloneable public static final DateFormat.Field TIME_ZONE = new Field("timezone", Calendar.ZONE_OFFSET); - public static final DateFormat.Field[] allFields = + static final DateFormat.Field[] allFields = { ERA, YEAR, MONTH, DAY_OF_MONTH, HOUR_OF_DAY1, HOUR_OF_DAY0, MINUTE, SECOND, MILLISECOND, diff --git a/libjava/java/text/DecimalFormat.java b/libjava/java/text/DecimalFormat.java index 94487c80204..8b2c25cd3c3 100644 --- a/libjava/java/text/DecimalFormat.java +++ b/libjava/java/text/DecimalFormat.java @@ -447,8 +447,8 @@ public class DecimalFormat extends NumberFormat && useExponentialNotation == dup.useExponentialNotation); } - protected void formatInternal (double number, FormatBuffer dest, - FieldPosition fieldPos) + private void formatInternal (double number, FormatBuffer dest, + FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) diff --git a/libjava/java/text/Format.java b/libjava/java/text/Format.java index 7310d5588cd..2c75578243c 100644 --- a/libjava/java/text/Format.java +++ b/libjava/java/text/Format.java @@ -70,7 +70,7 @@ public abstract class Format implements Serializable, Cloneable { static final long serialVersionUID = 276966692217360283L; - public Field(String name) + protected Field(String name) { super(name); } |