diff options
author | Michael Koch <konqueror@gmx.de> | 2004-11-24 13:26:27 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-11-24 13:26:27 +0000 |
commit | b1e6f04325b664cdab40a386ae7fcea1996421fd (patch) | |
tree | 944bb01c51eede9ae60367a8f64baad2189698b5 | |
parent | 9cf12765866e975d672d4afb2dedb7468d838e82 (diff) | |
download | gcc-b1e6f04325b664cdab40a386ae7fcea1996421fd.zip gcc-b1e6f04325b664cdab40a386ae7fcea1996421fd.tar.gz gcc-b1e6f04325b664cdab40a386ae7fcea1996421fd.tar.bz2 |
ResourceBundle.java: Reformatted.
2004-11-24 Michael Koch <konqueror@gmx.de>
* java/util/ResourceBundle.java: Reformatted.
(tryBundle): Fixed javadoc.
From-SVN: r91152
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/util/ResourceBundle.java | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index c1aa65c..df0f9d0 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-11-24 Michael Koch <konqueror@gmx.de> + + * java/util/ResourceBundle.java: Reformatted. + (tryBundle): Fixed javadoc. + 2004-11-24 Jeroen Frijters <jeroen@frijters.net> * java/text/MessageFormat.java diff --git a/libjava/java/util/ResourceBundle.java b/libjava/java/util/ResourceBundle.java index a60471d..94acc96 100644 --- a/libjava/java/util/ResourceBundle.java +++ b/libjava/java/util/ResourceBundle.java @@ -1,5 +1,6 @@ /* ResourceBundle -- aids in loading resource bundles - Copyright (C) 1998, 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2001, 2002, 2003, 2004 + Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -292,7 +293,7 @@ public abstract class ResourceBundle catch (CloneNotSupportedException x) {} return clone; - } + } } /** A cache lookup key. This avoids having to a new one for every @@ -395,6 +396,7 @@ public abstract class ResourceBundle Object obj = bundleCache.get(lookupKey); ResourceBundle rb = null; + if (obj instanceof ResourceBundle) { return (ResourceBundle) obj; @@ -516,7 +518,7 @@ public abstract class ResourceBundle * Tries to load a the bundle for a given locale, also loads the backup * locales with the same language. * - * @param name the name + * @param baseName the raw bundle name, without locale qualifiers * @param locale the locale * @param classloader the classloader * @param bundle the backup (parent) bundle |