incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r617368 - /incubator/sling/trunk/sling/servlet-resolver/src/main/java/org/apache/sling/servlet/resolver/helper/PathSupport.java
Date Fri, 01 Feb 2008 08:10:05 GMT
Author: fmeschbe
Date: Fri Feb  1 00:10:03 2008
New Revision: 617368

URL: http://svn.apache.org/viewvc?rev=617368&view=rev
Log:
SLING-215 Correctly parenthezie expression to not get false positives

Modified:
    incubator/sling/trunk/sling/servlet-resolver/src/main/java/org/apache/sling/servlet/resolver/helper/PathSupport.java

Modified: incubator/sling/trunk/sling/servlet-resolver/src/main/java/org/apache/sling/servlet/resolver/helper/PathSupport.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/servlet-resolver/src/main/java/org/apache/sling/servlet/resolver/helper/PathSupport.java?rev=617368&r1=617367&r2=617368&view=diff
==============================================================================
--- incubator/sling/trunk/sling/servlet-resolver/src/main/java/org/apache/sling/servlet/resolver/helper/PathSupport.java
(original)
+++ incubator/sling/trunk/sling/servlet-resolver/src/main/java/org/apache/sling/servlet/resolver/helper/PathSupport.java
Fri Feb  1 00:10:03 2008
@@ -39,8 +39,8 @@
             throw new IllegalArgumentException(
                 "HTTP Method name must not be empty");
 
-        } else if (HttpConstants.METHOD_GET.equalsIgnoreCase(methodName)
-            || HttpConstants.METHOD_HEAD.equalsIgnoreCase(methodName)
+        } else if ((HttpConstants.METHOD_GET.equalsIgnoreCase(methodName)
+            || HttpConstants.METHOD_HEAD.equalsIgnoreCase(methodName))
             && extension != null && extension.length() > 0) {
 
             // for GET, we use the request extension



Mime
View raw message