From 7935fbd5abc227568a1d2164cb7d3b43ac94e3c2 Mon Sep 17 00:00:00 2001 From: mkoch Date: Wed, 24 Nov 2004 13:26:27 +0000 Subject: 2004-11-24 Michael Koch * java/util/ResourceBundle.java: Reformatted. (tryBundle): Fixed javadoc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91152 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/util/ResourceBundle.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libjava/java') diff --git a/libjava/java/util/ResourceBundle.java b/libjava/java/util/ResourceBundle.java index a60471dcab5..94acc9688e0 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 -- cgit v1.2.3