Skip to content
Snippets Groups Projects
Commit b8115dbc authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

[misc] Apply codestyle and fix javadoc

parent 05882c80
No related branches found
No related tags found
No related merge requests found
...@@ -27,10 +27,10 @@ ...@@ -27,10 +27,10 @@
import org.xwiki.environment.internal.ServletEnvironment; import org.xwiki.environment.internal.ServletEnvironment;
/** /**
* Extends the Velocity Tool's {@link WebappLoader} by adding the ServletContext to the Velocity Engine's Application * Extends the Velocity Tool's {@link WebappResourceLoader} by adding the ServletContext to the Velocity Engine's
* Attributes since this is a prerequisite for {@link WebappLoader} to work correctly. This resource loader depends on * Application Attributes since this is a prerequisite for {@link WebappResourceLoader} to work correctly. This resource
* the fact that the XWiki Component Manager has been set in Velocity Engine's Application Attribute prior to its * loader depends on the fact that the XWiki Component Manager has been set in Velocity Engine's Application Attribute
* initialization. * prior to its initialization.
* *
* @version $Id$ * @version $Id$
* @since 3.0M3 * @since 3.0M3
...@@ -67,8 +67,7 @@ private Environment getEnvironment() ...@@ -67,8 +67,7 @@ private Environment getEnvironment()
*/ */
private ComponentManager getComponentManager() private ComponentManager getComponentManager()
{ {
ComponentManager cm = ComponentManager cm = (ComponentManager) this.rsvc.getApplicationAttribute(ComponentManager.class.getName());
(ComponentManager) this.rsvc.getApplicationAttribute(ComponentManager.class.getName());
if (cm == null) { if (cm == null) {
throw new RuntimeException( throw new RuntimeException(
"Cannot initialize Velocity subsystem: missing Component Manager in Velocity Application Attribute"); "Cannot initialize Velocity subsystem: missing Component Manager in Velocity Application Attribute");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment