[kaffe] CVS kaffe (dalibor): Resynced with GNU Classpath: Added comments to Locale

Kaffe CVS cvs-commits at kaffe.org
Sun Mar 21 09:36:03 PST 2004


PatchSet 4546 
Date: 2004/03/21 17:29:34
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: Added comments to Locale

2004-03-19  Dalibor Topic <robilad at kaffe.org>

        Resynced with GNU Classpath.

        2004-03-19  Michael Koch  <konqueror at gmx.de>

        * java/util/Locale.java
        (getISO3Country): Added comment for string comparison optimization.
        (getISO3Language): Likewise.

Members: 
	ChangeLog:1.2124->1.2125 
	libraries/javalib/java/util/Locale.java:1.14->1.15 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2124 kaffe/ChangeLog:1.2125
--- kaffe/ChangeLog:1.2124	Sun Mar 21 12:33:28 2004
+++ kaffe/ChangeLog	Sun Mar 21 17:29:34 2004
@@ -1,3 +1,13 @@
+2004-03-19  Dalibor Topic <robilad at kaffe.org>
+
+	Resynced with GNU Classpath.
+
+	2004-03-19  Michael Koch  <konqueror at gmx.de>
+
+        * java/util/Locale.java
+        (getISO3Country): Added comment for string comparison optimization.
+        (getISO3Language): Likewise.
+
 2004-03-21  Guilhem Lavaux <guilhem at kaffe.org>
 
 	* libraries/javalib/gnu/java/text/FormatCharacterIterator.java,
Index: kaffe/libraries/javalib/java/util/Locale.java
diff -u kaffe/libraries/javalib/java/util/Locale.java:1.14 kaffe/libraries/javalib/java/util/Locale.java:1.15
--- kaffe/libraries/javalib/java/util/Locale.java:1.14	Sat Aug 16 11:03:48 2003
+++ kaffe/libraries/javalib/java/util/Locale.java	Sun Mar 21 17:29:36 2004
@@ -436,6 +436,7 @@
    */
   public String getISO3Language()
   {
+    // We know all strings are interned so we can use '==' for better performance.
     if (language == "")
       return "";
     int index
@@ -472,6 +473,7 @@
    */
   public String getISO3Country()
   {
+    // We know all strings are interned so we can use '==' for better performance.
     if (country == "")
       return "";
     int index




More information about the kaffe mailing list