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:
parent
1ce9c63d50
commit
deccda9fff
@ -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
|
||||
|
@ -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,"
|
||||
|
Loading…
Reference in New Issue
Block a user