This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: java.util.Locale
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Tue, 17 Jun 2003 16:19:51 +0200
- Subject: FYI: Patch: java.util.Locale
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I commited the attached patch to make 4 methods final as they always
was in SUN's JDK.
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+7yOHWSOgCCdjSDsRAoeVAJ4719DPt7uXwTNPUJyR/5UifUuQwwCggs/C
BJafyGjM1FroZ/b/ba+aVu4=
=Nl9z
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1952
diff -u -b -B -r1.1952 ChangeLog
--- ChangeLog 17 Jun 2003 14:05:16 -0000 1.1952
+++ ChangeLog 17 Jun 2003 14:14:56 -0000
@@ -1,5 +1,13 @@
2003-06-17 Michael Koch <konqueror@gmx.de>
+ * java/util/Locale.java
+ (getDisplayLanguage): Made it final.
+ (getDisplayCountry): Likewise.
+ (getDisplayVariant): Likewise.
+ (getDisplayName): Likewise.
+
+2003-06-17 Michael Koch <konqueror@gmx.de>
+
* java/util/PropertyResourceBundle.java:
Removed unneeded import.
Index: java/util/Locale.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/Locale.java,v
retrieving revision 1.11
diff -u -b -B -r1.11 Locale.java
--- java/util/Locale.java 27 Nov 2002 22:41:07 -0000 1.11
+++ java/util/Locale.java 17 Jun 2003 14:14:56 -0000
@@ -520,7 +520,7 @@
* @return the language name of this locale localized to the default locale,
* with the ISO code as backup
*/
- public String getDisplayLanguage()
+ public final String getDisplayLanguage()
{
return getDisplayLanguage(defaultLocale);
}
@@ -558,7 +558,7 @@
* @return the country name of this locale localized to the given locale,
* with the ISO code as backup
*/
- public String getDisplayCountry()
+ public final String getDisplayCountry()
{
return getDisplayCountry(defaultLocale);
}
@@ -596,7 +596,7 @@
* @return the variant code of this locale localized to the given locale,
* with the ISO code as backup
*/
- public String getDisplayVariant()
+ public final String getDisplayVariant()
{
return getDisplayVariant(defaultLocale);
}
@@ -635,7 +635,7 @@
*
* @return String version of this locale, suitable for display to the user
*/
- public String getDisplayName()
+ public final String getDisplayName()
{
return getDisplayName(defaultLocale);
}