aboutsummaryrefslogtreecommitdiff
path: root/libjava/javax/imageio
diff options
context:
space:
mode:
authorJeroen Frijters <jeroen@frijters.net>2004-11-18 15:26:45 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2004-11-18 15:26:45 +0000
commita73498160839a23ebcda694c117be41ddb197528 (patch)
tree9338ba46e1d50f05eca700161824c4a97dbb3435 /libjava/javax/imageio
parent9ef8069a0cc1e5071ca40a5685247b56be5a68d4 (diff)
downloadgcc-a73498160839a23ebcda694c117be41ddb197528.zip
gcc-a73498160839a23ebcda694c117be41ddb197528.tar.gz
gcc-a73498160839a23ebcda694c117be41ddb197528.tar.bz2
StackTraceElement.java: Made final.
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. From-SVN: r90866
Diffstat (limited to 'libjava/javax/imageio')
-rw-r--r--libjava/javax/imageio/ImageIO.java5
-rw-r--r--libjava/javax/imageio/stream/ImageInputStreamImpl.java2
2 files changed, 6 insertions, 1 deletions
diff --git a/libjava/javax/imageio/ImageIO.java b/libjava/javax/imageio/ImageIO.java
index 5cc7c92..6aa5558 100644
--- a/libjava/javax/imageio/ImageIO.java
+++ b/libjava/javax/imageio/ImageIO.java
@@ -51,6 +51,11 @@ import javax.imageio.spi.ServiceRegistry;
public final class ImageIO
{
+ /**
+ * This class isn't intended to be instantiated.
+ */
+ private ImageIO() {}
+
private static final class ReaderFormatFilter implements ServiceRegistry.Filter
{
private String formatName;
diff --git a/libjava/javax/imageio/stream/ImageInputStreamImpl.java b/libjava/javax/imageio/stream/ImageInputStreamImpl.java
index 27cb6c5..3a5d6dc 100644
--- a/libjava/javax/imageio/stream/ImageInputStreamImpl.java
+++ b/libjava/javax/imageio/stream/ImageInputStreamImpl.java
@@ -58,7 +58,7 @@ public abstract class ImageInputStreamImpl implements ImageInputStream
// Do nothing here.
}
- protected void checkClosed()
+ protected final void checkClosed()
throws IOException
{
if (closed)