2004-03-11 Michael Koch <konqueror@gmx.de>

* java/util/Locale.java
	(getISO3Language): Use String.equals() instead of ==.
	(getISO3Country): Likewise.

From-SVN: r79330
This commit is contained in:
Michael Koch 2004-03-11 16:27:35 +00:00 committed by Michael Koch
parent 1ce9c63d50
commit deccda9fff
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2004-03-11 Michael Koch <konqueror@gmx.de>
* java/util/Locale.java
(getISO3Language): Use String.equals() instead of ==.
(getISO3Country): Likewise.
2004-03-11 Dalibor Topic <robilad@kaffe.org>
* java/text/AttributedString.java

View File

@ -436,7 +436,7 @@ public final class Locale implements Serializable, Cloneable
*/
public String getISO3Language()
{
if (language == "")
if (language.equals(""))
return "";
int index
= ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da,"
@ -472,7 +472,7 @@ public final class Locale implements Serializable, Cloneable
*/
public String getISO3Country()
{
if (country == "")
if (country.equals(""))
return "";
int index
= ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF,"