2004-03-11 Michael Koch <konqueror@gmx.de>
authorMichael Koch <konqueror@gmx.de>
Thu, 11 Mar 2004 17:35:01 +0000 (17:35 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Thu, 11 Mar 2004 17:35:01 +0000 (17:35 +0000)
* java/util/logging/Level.java
(parse): Use String.equals() instead of ==.

From-SVN: r79333

libjava/ChangeLog
libjava/java/util/logging/Level.java

index d329d65b7bc64af526a8e452943a0c32f777693b..7d1100fb74506a28ac0d9f20503ba558ee14968a 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-11  Michael Koch  <konqueror@gmx.de>
+
+       * java/util/logging/Level.java
+       (parse): Use String.equals() instead of ==.
+
 2004-03-11  Michael Koch  <konqueror@gmx.de>
 
        * gnu/java/net/protocol/jar/Connection.java
index d8987f6b5813fa2203f12fe9158a27b5de020b67..ed497d537e0662a6d1c333794762631dfbc58658 100644 (file)
@@ -40,9 +40,9 @@ exception statement from your version.
 
 package java.util.logging;
 
+import java.io.Serializable;
 import java.util.ResourceBundle;
 
-
 /**
  * A class for indicating logging levels.  A number of commonly used
  * levels is pre-defined (such as <code>java.util.logging.Level.INFO</code>),
@@ -52,8 +52,7 @@ import java.util.ResourceBundle;
  *
  * @author Sascha Brawer <brawer@acm.org>
  */
-public class Level
-  implements java.io.Serializable
+public class Level implements Serializable
 {
   /* The integer values are the same as in the Sun J2SE 1.4.
    * They have been obtained with a test program. In J2SE 1.4.1,
@@ -344,7 +343,7 @@ public class Level
 
     for (int i = 0; i < knownLevels.length; i++)
     {
-      if (name == knownLevels[i].name)
+      if (name.equals(knownLevels[i].name))
        return knownLevels[i];
     }