+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
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>),
*
* @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,
for (int i = 0; i < knownLevels.length; i++)
{
- if (name == knownLevels[i].name)
+ if (name.equals(knownLevels[i].name))
return knownLevels[i];
}