Permalink
Browse files

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

… [IMMUTANT-250]
  • Loading branch information...
1 parent fa1d8e6 commit 07151b46fd1c09617727944cdf19e5c4131365c0 @tobias tobias committed Mar 20, 2013
Showing with 3 additions and 22 deletions.
  1. +3 −22 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() {

0 comments on commit 07151b4

Please sign in to comment.