diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 2d741cf4468..b92efd4c400 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2004-03-11 Michael Koch + + * java/util/Locale.java + (getISO3Language): Use String.equals() instead of ==. + (getISO3Country): Likewise. + 2004-03-11 Dalibor Topic * java/text/AttributedString.java diff --git a/libjava/java/util/Locale.java b/libjava/java/util/Locale.java index 06867fb020c..c77f0cb9284 100644 --- a/libjava/java/util/Locale.java +++ b/libjava/java/util/Locale.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,"