Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Just delegate to super to prevent resource url duplication in the set…

… [IMMUTANT-250]
  • Loading branch information...
commit 07151b46fd1c09617727944cdf19e5c4131365c0 1 parent fa1d8e6
@tobias tobias authored
View
25 modules/core/src/main/java/org/immutant/core/ImmutantClassLoader.java
@@ -60,31 +60,12 @@ public URL getResource(String name) {
@Override
public URL findResource(String name) {
- return stripVFS(((ModuleClassLoader)getParent()).findResource(name, false));
+ return super.findResource(name);
}
@Override
- public Enumeration<URL> findResources(String name) {
- final Enumeration<URL> urls;
- try {
- urls = ((ModuleClassLoader)getParent()).findResources(name, false);
- } catch (IOException e) {
- e.printStackTrace();
-
- return null;
- }
-
- return new Enumeration<URL>() {
- @Override
- public boolean hasMoreElements() {
- return urls.hasMoreElements();
- }
-
- @Override
- public URL nextElement() {
- return stripVFS(urls.nextElement());
- }
- };
+ public Enumeration<URL> findResources(String name) throws IOException {
+ return super.findResources(name);
}
public List<URL> getResourcePaths() {
Please sign in to comment.
Something went wrong with that request. Please try again.