diff --git a/spring-web/src/main/java/org/springframework/web/jsf/DecoratingNavigationHandler.java b/spring-web/src/main/java/org/springframework/web/jsf/DecoratingNavigationHandler.java index ae3a888f214..9821d0f8dbe 100644 --- a/spring-web/src/main/java/org/springframework/web/jsf/DecoratingNavigationHandler.java +++ b/spring-web/src/main/java/org/springframework/web/jsf/DecoratingNavigationHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2006 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,6 +32,7 @@ import javax.faces.context.FacesContext; * * @author Juergen Hoeller * @since 1.2.7 + * @see #handleNavigation(javax.faces.context.FacesContext, String, String, NavigationHandler) * @see DelegatingNavigationHandlerProxy */ public abstract class DecoratingNavigationHandler extends NavigationHandler { @@ -58,7 +59,7 @@ public abstract class DecoratingNavigationHandler extends NavigationHandler { * (that is, if passed in through the constructor). */ public final NavigationHandler getDecoratedNavigationHandler() { - return decoratedNavigationHandler; + return this.decoratedNavigationHandler; } diff --git a/spring-web/src/main/java/org/springframework/web/jsf/DelegatingNavigationHandlerProxy.java b/spring-web/src/main/java/org/springframework/web/jsf/DelegatingNavigationHandlerProxy.java index 6686c3ded50..a363af75b26 100644 --- a/spring-web/src/main/java/org/springframework/web/jsf/DelegatingNavigationHandlerProxy.java +++ b/spring-web/src/main/java/org/springframework/web/jsf/DelegatingNavigationHandlerProxy.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2006 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -128,7 +128,7 @@ public class DelegatingNavigationHandlerProxy extends NavigationHandler { */ protected NavigationHandler getDelegate(FacesContext facesContext) { String targetBeanName = getTargetBeanName(facesContext); - return (NavigationHandler) getBeanFactory(facesContext).getBean(targetBeanName, NavigationHandler.class); + return getBeanFactory(facesContext).getBean(targetBeanName, NavigationHandler.class); } /**