Skip to content
Snippets Groups Projects
Commit deccda9f authored by Michael Koch's avatar Michael Koch Committed by Michael Koch
Browse files

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

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

From-SVN: r79330
parent 1ce9c63d
No related branches found
No related tags found
No related merge requests found
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> 2004-03-11 Dalibor Topic <robilad@kaffe.org>
* java/text/AttributedString.java * java/text/AttributedString.java
......
...@@ -436,7 +436,7 @@ public final class Locale implements Serializable, Cloneable ...@@ -436,7 +436,7 @@ public final class Locale implements Serializable, Cloneable
*/ */
public String getISO3Language() public String getISO3Language()
{ {
if (language == "") if (language.equals(""))
return ""; return "";
int index int index
= ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," = ("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 ...@@ -472,7 +472,7 @@ public final class Locale implements Serializable, Cloneable
*/ */
public String getISO3Country() public String getISO3Country()
{ {
if (country == "") if (country.equals(""))
return ""; return "";
int index int index
= ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF,"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment