diff src/org/eclipse/jetty/util/resource/ResourceCollection.java @ 1013:6939226e0ac4

simplify URIUtil
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 24 Oct 2016 01:06:33 -0600
parents 3428c60d7cfc
children
line wrap: on
line diff
--- a/src/org/eclipse/jetty/util/resource/ResourceCollection.java	Mon Oct 24 00:47:24 2016 -0600
+++ b/src/org/eclipse/jetty/util/resource/ResourceCollection.java	Mon Oct 24 01:06:33 2016 -0600
@@ -196,7 +196,7 @@
         if(path==null)
             throw new MalformedURLException();
         
-        if(path.length()==0 || URIUtil.SLASH.equals(path))
+        if(path.length()==0 || "/".equals(path))
             return this;
         
         Resource resource=null;