From: Michael Koch Date: Thu, 6 May 2004 15:55:00 +0000 (+0000) Subject: 2004-05-06 Michael Koch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a215a117ba34bd7f584a4ec2f649fdfbb7b6172;p=gcc.git 2004-05-06 Michael Koch * java/util/logging/Level.java (parse): Use == instead of String.equals(). From-SVN: r81568 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index df40a146d12..e6512ac92e6 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-05-06 Michael Koch + + * java/util/logging/Level.java + (parse): Use == instead of String.equals(). + 2004-05-06 Bryce McKinlay * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use diff --git a/libjava/java/util/logging/Level.java b/libjava/java/util/logging/Level.java index ed497d537e0..e37f9cb5824 100644 --- a/libjava/java/util/logging/Level.java +++ b/libjava/java/util/logging/Level.java @@ -343,7 +343,7 @@ public class Level implements Serializable for (int i = 0; i < knownLevels.length; i++) { - if (name.equals(knownLevels[i].name)) + if (name == knownLevels[i].name) return knownLevels[i]; }