diff options
author | Michael Koch <konqueror@gmx.de> | 2004-03-11 17:35:01 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-03-11 17:35:01 +0000 |
commit | 4b0b51c9706b25603247ec6e48d8ac53e8db64f3 (patch) | |
tree | 297a7cff95bbdbcd445e1ab295afb46c1850caee | |
parent | 950d83e76577f63f0bf5fa7e631e8b01d3b84c2d (diff) | |
download | gcc-4b0b51c9706b25603247ec6e48d8ac53e8db64f3.zip gcc-4b0b51c9706b25603247ec6e48d8ac53e8db64f3.tar.gz gcc-4b0b51c9706b25603247ec6e48d8ac53e8db64f3.tar.bz2 |
2004-03-11 Michael Koch <konqueror@gmx.de>
* java/util/logging/Level.java
(parse): Use String.equals() instead of ==.
From-SVN: r79333
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/util/logging/Level.java | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index d329d65..7d1100f 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,10 @@ 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 (getContentLength): New method. diff --git a/libjava/java/util/logging/Level.java b/libjava/java/util/logging/Level.java index d8987f6..ed497d5 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 <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]; } |