/[Apache-SVN]/cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java
ViewVC logotype

Diff of /cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java	2005/04/29 09:09:44	165283
+++ cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java	2005/04/29 09:24:28	165284
@@ -173,14 +173,13 @@ public class SitemapLanguage extends Def
         final String role = config.getAttribute("role", null);
         if ( role != null ) {
             return new TreeBuilder.EventComponent(manager.lookup(role), true);
-        } else {
-            final String className = config.getAttribute("class");
-            final Object component = ClassUtils.newInstance(className);
+        }
+        final String className = config.getAttribute("class");
+        final Object component = ClassUtils.newInstance(className);
 
-            LifecycleHelper.setupComponent(component, this.getLogger(), context, manager, config);
+        LifecycleHelper.setupComponent(component, this.getLogger(), context, manager, config);
 
-            return new TreeBuilder.EventComponent(component, false);
-        }
+        return new TreeBuilder.EventComponent(component, false);
     }
 
     /**

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26