PropertyResourceBundle.java (handleGetObject): Now public.

* java/util/PropertyResourceBundle.java (handleGetObject): Now
	public.
	* java/util/ListResourceBundle.java (handleGetObject): Now public
	and final, per spec.

From-SVN: r46452
This commit is contained in:
Tom Tromey 2001-10-24 00:01:15 +00:00 committed by Tom Tromey
parent dc8a02024d
commit b36b070c79
3 changed files with 9 additions and 4 deletions

View file

@ -1,5 +1,10 @@
2001-10-23 Tom Tromey <tromey@redhat.com> 2001-10-23 Tom Tromey <tromey@redhat.com>
* java/util/PropertyResourceBundle.java (handleGetObject): Now
public.
* java/util/ListResourceBundle.java (handleGetObject): Now public
and final, per spec.
* java/io/BufferedWriter.java (localFlush): Don't synchronize. * java/io/BufferedWriter.java (localFlush): Don't synchronize.
2001-10-23 Bryce McKinlay <bryce@waitaki.otago.ac.nz> 2001-10-23 Bryce McKinlay <bryce@waitaki.otago.ac.nz>

View file

@ -1,5 +1,5 @@
/* java.util.ListResourceBundle /* java.util.ListResourceBundle
Copyright (C) 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
@ -65,7 +65,7 @@ public abstract class ListResourceBundle extends ResourceBundle
* @param key The key of the resource. * @param key The key of the resource.
* @return The resource for the key or null if it doesn't exists. * @return The resource for the key or null if it doesn't exists.
*/ */
protected Object handleGetObject(String key) public final Object handleGetObject(String key)
{ {
Object[][] contents = getContents(); Object[][] contents = getContents();
for (int i = 0; i < contents.length; i++) for (int i = 0; i < contents.length; i++)

View file

@ -1,5 +1,5 @@
/* java.util.PropertyResourceBundle /* java.util.PropertyResourceBundle
Copyright (C) 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
@ -111,7 +111,7 @@ public class PropertyResourceBundle extends ResourceBundle
* @param key The key of the resource. * @param key The key of the resource.
* @return The resource for the key or null if it doesn't exists. * @return The resource for the key or null if it doesn't exists.
*/ */
protected Object handleGetObject(String key) public Object handleGetObject(String key)
{ {
return properties.getProperty(key); return properties.getProperty(key);
} }