tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1049484 - /tomcat/trunk/java/org/apache/catalina/util/ContextName.java
Date Wed, 15 Dec 2010 10:46:23 GMT
Author: markt
Date: Wed Dec 15 10:46:23 2010
New Revision: 1049484

URL: http://svn.apache.org/viewvc?rev=1049484&view=rev
Log:
Fix my stupid mistake.

Modified:
    tomcat/trunk/java/org/apache/catalina/util/ContextName.java

Modified: tomcat/trunk/java/org/apache/catalina/util/ContextName.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/util/ContextName.java?rev=1049484&r1=1049483&r2=1049484&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/util/ContextName.java (original)
+++ tomcat/trunk/java/org/apache/catalina/util/ContextName.java Wed Dec 15 10:46:23 2010
@@ -150,13 +150,13 @@ public final class ContextName {
 
     public String getDisplayName() {
         StringBuilder tmp = new StringBuilder();
-        if (path == "") {
+        if ("".equals(path)) {
             tmp.append('/');
         } else {
             tmp.append(path);
         }
         
-        if (version != "") {
+        if (!"".equals(version)) {
             tmp.append(VERSION_MARKER);
             tmp.append(version);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message