This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: java.util.Locale


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I commited the attached little patch to trunk to merge Locale a little 
bit more with classpath.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+8CCEWSOgCCdjSDsRApKqAKCKpxu+wwcVvS06z5ywTIKvbwrPrwCfVOSV
TizfP5ilEid4LttYxhIMnpQ=
=ukGN
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1957
diff -u -b -B -r1.1957 ChangeLog
--- ChangeLog	18 Jun 2003 08:09:46 -0000	1.1957
+++ ChangeLog	18 Jun 2003 08:14:39 -0000
@@ -1,5 +1,10 @@
 2003-06-18  Michael Koch  <konqueror@gmx.de>
 
+	* java/util/Locale.java
+	(equals): Merged from classpath.
+
+2003-06-18  Michael Koch  <konqueror@gmx.de>
+
 	* java/net/InetAddress.java:
 	Reformatted to better match classpath's version.
 	* java/net/URL.java
Index: java/util/Locale.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/Locale.java,v
retrieving revision 1.12
diff -u -b -B -r1.12 Locale.java
--- java/util/Locale.java	17 Jun 2003 14:16:22 -0000	1.12
+++ java/util/Locale.java	18 Jun 2003 08:14:39 -0000
@@ -723,6 +723,8 @@
    */
   public boolean equals(Object obj)
   {
+    if (this == obj)
+      return true;
     if (! (obj instanceof Locale))
       return false;
     Locale l = (Locale) obj;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]