diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 924288c0ed7c64ceeee6588fd9bb94e2d54a0256..7ce832afd5e67e6f2d0e8c7b793a15c789558b70 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,14 @@ +2004-11-06 Tom Tromey <tromey@redhat.com> + + * gnu/java/nio/charset/ISO_8859_1.java (Decoder): Now + package-private. + (Encoder): Likewise. + * gnu/java/nio/charset/UTF_8.java (Decoder): Now package-private. + (Encoder): Likewise. + * gnu/java/nio/charset/US_ASCII.java (Decoder): Now + package-private. + (Encoder): Likewise. + 2004-11-06 Mark Wielaard <mark@klomp.org> * Makefile.am: Add new javax.imageio files. diff --git a/libjava/gnu/java/nio/charset/ISO_8859_1.java b/libjava/gnu/java/nio/charset/ISO_8859_1.java index f29fa26030067e2f4bc310451a6ca0eb60e9c9c9..a7fcb6363535a1d4586de5846ec4b088939c5291 100644 --- a/libjava/gnu/java/nio/charset/ISO_8859_1.java +++ b/libjava/gnu/java/nio/charset/ISO_8859_1.java @@ -1,5 +1,5 @@ /* ISO_8859_1.java -- - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -73,7 +73,8 @@ final class ISO_8859_1 extends Charset private static final class Decoder extends CharsetDecoder { - private Decoder (Charset cs) + // Package-private to avoid a trampoline constructor. + Decoder (Charset cs) { super (cs, 1.0f, 1.0f); } @@ -100,7 +101,8 @@ final class ISO_8859_1 extends Charset private static final class Encoder extends CharsetEncoder { - private Encoder (Charset cs) + // Package-private to avoid a trampoline constructor. + Encoder (Charset cs) { super (cs, 1.0f, 1.0f); } diff --git a/libjava/gnu/java/nio/charset/US_ASCII.java b/libjava/gnu/java/nio/charset/US_ASCII.java index a1ff25104025d3d5a45f40a059cea10e5b141e33..9efb8ecf6f8825e7673aae866a75234344907299 100644 --- a/libjava/gnu/java/nio/charset/US_ASCII.java +++ b/libjava/gnu/java/nio/charset/US_ASCII.java @@ -1,5 +1,5 @@ /* US_ASCII.java -- - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -73,7 +73,8 @@ final class US_ASCII extends Charset private static final class Decoder extends CharsetDecoder { - private Decoder (Charset cs) + // Package-private to avoid a trampoline constructor. + Decoder (Charset cs) { super (cs, 1.0f, 1.0f); } @@ -105,7 +106,8 @@ final class US_ASCII extends Charset private static final class Encoder extends CharsetEncoder { - private Encoder (Charset cs) + // Package-private to avoid a trampoline constructor. + Encoder (Charset cs) { super (cs, 1.0f, 1.0f); } diff --git a/libjava/gnu/java/nio/charset/UTF_8.java b/libjava/gnu/java/nio/charset/UTF_8.java index aa623b2f2cfddf35f8e9b9def1ee8af20a2d501d..acb34e2bbce6ae374cd87bfb1c6eacb4c3118979 100644 --- a/libjava/gnu/java/nio/charset/UTF_8.java +++ b/libjava/gnu/java/nio/charset/UTF_8.java @@ -1,5 +1,5 @@ /* UTF_8.java -- - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -84,7 +84,8 @@ final class UTF_8 extends Charset private static final class Decoder extends CharsetDecoder { - private Decoder (Charset cs) + // Package-private to avoid a trampoline constructor. + Decoder (Charset cs) { super (cs, 1.0f, 1.0f); } @@ -171,7 +172,8 @@ final class UTF_8 extends Charset private static final class Encoder extends CharsetEncoder { - private Encoder (Charset cs) + // Package-private to avoid a trampoline constructor. + Encoder (Charset cs) { // According to // http://www-106.ibm.com/developerworks/unicode/library/utfencodingforms/index.html