From 548ce8be4ab154b7d7f42ae8fe8552f9888021d0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 16 Jun 2002 21:15:44 +0000 Subject: RuntimeException.java: Re-merge with Classpath. * java/lang/RuntimeException.java: Re-merge with Classpath. * java/util/ArrayList.java: Likewise. * java/util/Arrays.java: Likewise. * java/util/BitSet.java: Likewise. * java/util/Dictionary.java: Likewise. * java/util/IdentityHashMap.java: Likewise. * java/util/MissingResourceException.java: Likewise. * java/util/Observer.java: Likewise. * java/util/TooManyListenersException.java: Likewise. * java/util/zip/DataFormatException.java: Likewise. * java/util/zip/ZipException.java: Likewise. From-SVN: r54680 --- libjava/java/util/MissingResourceException.java | 38 ++++++++++++++----------- 1 file changed, 22 insertions(+), 16 deletions(-) (limited to 'libjava/java/util/MissingResourceException.java') diff --git a/libjava/java/util/MissingResourceException.java b/libjava/java/util/MissingResourceException.java index 1618c4f..47525e5 100644 --- a/libjava/java/util/MissingResourceException.java +++ b/libjava/java/util/MissingResourceException.java @@ -1,5 +1,5 @@ -/* java.util.MissingResourceException - Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. +/* MissingResourceException.java -- thrown for a missing resource + Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,38 +38,42 @@ exception statement from your version. */ package java.util; -/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 - * "The Java Language Specification", ISBN 0-201-63451-1 - * plus online API docs for JDK 1.2 beta from http://www.javasoft.com. - * Status: Believed complete and correct. - */ - /** * This exception is thrown when a resource is missing. * - * @see ResourceBundle * @author Jochen Hoenicke * @author Warren Levy + * @see ResourceBundle + * @since 1.1 + * @status updated to 1.4 */ public class MissingResourceException extends RuntimeException { + /** + * Compatible with JDK 1.1+. + */ private static final long serialVersionUID = -4876345176062000401L; /** * The name of the resource bundle requested by user. + * + * @serial the class name of the resource bundle */ - private String className; + private final String className; /** * The key of the resource in the bundle requested by user. + * + * @serial the name of the resouce */ - private String key; + private final String key; /** * Creates a new exception, with the specified parameters. - * @param s the detail message. - * @param className the name of the resource bundle. - * @param key the key of the missing resource. + * + * @param s the detail message + * @param className the name of the resource bundle + * @param key the key of the missing resource */ public MissingResourceException(String s, String className, String key) { @@ -80,7 +84,8 @@ public class MissingResourceException extends RuntimeException /** * Gets the name of the resource bundle, for which a resource is missing. - * @return the name of the resource bundle. + * + * @return the name of the resource bundle */ public String getClassName() { @@ -90,7 +95,8 @@ public class MissingResourceException extends RuntimeException /** * Gets the key of the resource that is missing bundle, this is an empty * string if the whole resource bundle is missing. - * @return the name of the resource bundle. + * + * @return the name of the resource bundle */ public String getKey() { -- cgit v1.1