Commit 4b0b51c9 by Michael Koch Committed by Michael Koch

2004-03-11 Michael Koch <konqueror@gmx.de>

	* java/util/logging/Level.java
	(parse): Use String.equals() instead of ==.

From-SVN: r79333
parent 950d83e7
2004-03-11 Michael Koch <konqueror@gmx.de> 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 * gnu/java/net/protocol/jar/Connection.java
(getContentLength): New method. (getContentLength): New method.
......
...@@ -40,9 +40,9 @@ exception statement from your version. ...@@ -40,9 +40,9 @@ exception statement from your version.
package java.util.logging; package java.util.logging;
import java.io.Serializable;
import java.util.ResourceBundle; import java.util.ResourceBundle;
/** /**
* A class for indicating logging levels. A number of commonly used * A class for indicating logging levels. A number of commonly used
* levels is pre-defined (such as <code>java.util.logging.Level.INFO</code>), * levels is pre-defined (such as <code>java.util.logging.Level.INFO</code>),
...@@ -52,8 +52,7 @@ import java.util.ResourceBundle; ...@@ -52,8 +52,7 @@ import java.util.ResourceBundle;
* *
* @author Sascha Brawer <brawer@acm.org> * @author Sascha Brawer <brawer@acm.org>
*/ */
public class Level public class Level implements Serializable
implements java.io.Serializable
{ {
/* The integer values are the same as in the Sun J2SE 1.4. /* 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, * They have been obtained with a test program. In J2SE 1.4.1,
...@@ -344,7 +343,7 @@ public class Level ...@@ -344,7 +343,7 @@ public class Level
for (int i = 0; i < knownLevels.length; i++) for (int i = 0; i < knownLevels.length; i++)
{ {
if (name == knownLevels[i].name) if (name.equals(knownLevels[i].name))
return knownLevels[i]; return knownLevels[i];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment