Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
1012:8d0bdd357e6e | 1013:6939226e0ac4 |
---|---|
194 throw new IllegalStateException("*resources* not set."); | 194 throw new IllegalStateException("*resources* not set."); |
195 | 195 |
196 if(path==null) | 196 if(path==null) |
197 throw new MalformedURLException(); | 197 throw new MalformedURLException(); |
198 | 198 |
199 if(path.length()==0 || URIUtil.SLASH.equals(path)) | 199 if(path.length()==0 || "/".equals(path)) |
200 return this; | 200 return this; |
201 | 201 |
202 Resource resource=null; | 202 Resource resource=null; |
203 ArrayList<Resource> resources = null; | 203 ArrayList<Resource> resources = null; |
204 int i=0; | 204 int i=0; |