Commit 74a568a4 by Michael Koch Committed by Michael Koch

Locale.java: Reverting my last patch and add a comment why the original version was okay.

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

	* java/util/Locale.java: Reverting my last patch
	and add a comment why the original version was okay.

From-SVN: r79511
parent ed38d6fe
2004-03-15 Michael Koch <konqueror@gmx.de>
* java/util/Locale.java: Reverting my last patch
and add a comment why the original version was okay.
2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
* gnu/java/nio/channels/natFileChannelPosix.cc: Implement
......
......@@ -436,7 +436,8 @@ public final class Locale implements Serializable, Cloneable
*/
public String getISO3Language()
{
if (language.equals(""))
// We know all strings are interned so we can use '==' for better performance.
if (language == "")
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 +473,8 @@ public final class Locale implements Serializable, Cloneable
*/
public String getISO3Country()
{
if (country.equals(""))
// We know all strings are interned so we can use '==' for better performance.
if (country == "")
return "";
int index
= ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF,"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment