You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by ct...@apache.org on 2008/12/12 15:46:37 UTC

svn commit: r726023 - /webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/SimpleResourceManager.java

Author: ctwiner
Date: Fri Dec 12 06:46:36 2008
New Revision: 726023

URL: http://svn.apache.org/viewvc?rev=726023&view=rev
Log:
a path ending with / will never match.

Modified:
    webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/SimpleResourceManager.java

Modified: webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/SimpleResourceManager.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/SimpleResourceManager.java?rev=726023&r1=726022&r2=726023&view=diff
==============================================================================
--- webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/SimpleResourceManager.java (original)
+++ webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/SimpleResourceManager.java Fri Dec 12 06:46:36 2008
@@ -356,10 +356,8 @@
         {
             EndpointReference next = (EndpointReference)i.next();
             String addressPath = next.getAddress().getRawPath();
-            int index = addressPath.lastIndexOf('/');
-            String eprContextPath = addressPath.substring(index);
             
-            if (eprContextPath.equals(contextPath))
+            if (addressPath.endsWith(contextPath))
                 copy.add(next);
         }