From 43d90b69eeea23b77c941b9cc6240ea294a4602e Mon Sep 17 00:00:00 2001 From: markt Date: Fri, 12 Jun 2009 11:10:02 +0000 Subject: [PATCH] Code clean-up. Fix a few warnings. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@784068 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/catalina/core/NamingContextListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/org/apache/catalina/core/NamingContextListener.java b/java/org/apache/catalina/core/NamingContextListener.java index 57e5a9046..7b79970d5 100644 --- a/java/org/apache/catalina/core/NamingContextListener.java +++ b/java/org/apache/catalina/core/NamingContextListener.java @@ -212,7 +212,7 @@ public class NamingContextListener return; } - if (event.getType() == Lifecycle.START_EVENT) { + if (Lifecycle.START_EVENT.equals(event.getType())) { if (initialized) return; @@ -271,7 +271,7 @@ public class NamingContextListener initialized = true; - } else if (event.getType() == Lifecycle.STOP_EVENT) { + } else if (Lifecycle.STOP_EVENT.equals(event.getType())) { if (!initialized) return; @@ -1064,7 +1064,7 @@ public class NamingContextListener // Create a reference to the resource. Reference ref = new ResourceLinkRef (resourceLink.getType(), resourceLink.getGlobal(), resourceLink.getFactory(), null); - Iterator i = resourceLink.listProperties(); + Iterator i = resourceLink.listProperties(); while (i.hasNext()) { String key = i.next().toString(); Object val = resourceLink.getProperty(key); -- 2.11.0