From 5a1672069edec60b352c1ad89d641d8222d44a2e Mon Sep 17 00:00:00 2001 From: mkoch Date: Thu, 11 Mar 2004 17:35:01 +0000 Subject: 2004-03-11 Michael Koch * java/util/logging/Level.java (parse): Use String.equals() instead of ==. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79333 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/util/logging/Level.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libjava/java') diff --git a/libjava/java/util/logging/Level.java b/libjava/java/util/logging/Level.java index d8987f6b581..ed497d537e0 100644 --- a/libjava/java/util/logging/Level.java +++ b/libjava/java/util/logging/Level.java @@ -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 java.util.logging.Level.INFO), @@ -52,8 +52,7 @@ import java.util.ResourceBundle; * * @author Sascha Brawer */ -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]; } -- cgit v1.2.3