From 0a215a117ba34bd7f584a4ec2f649fdfbb7b6172 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Thu, 6 May 2004 15:55:00 +0000 Subject: [PATCH] 2004-05-06 Michael Koch * java/util/logging/Level.java (parse): Use == instead of String.equals(). From-SVN: r81568 --- libjava/ChangeLog | 5 +++++ libjava/java/util/logging/Level.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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]; } -- 2.30.2