tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r777470 - /tomcat/trunk/java/org/apache/jasper/el/ELResolverImpl.java
Date Fri, 22 May 2009 11:15:44 GMT
Author: markt
Date: Fri May 22 11:15:43 2009
New Revision: 777470

URL: http://svn.apache.org/viewvc?rev=777470&view=rev
Log:
Removed some casts. Patch suggested by kkolinko

Modified:
    tomcat/trunk/java/org/apache/jasper/el/ELResolverImpl.java

Modified: tomcat/trunk/java/org/apache/jasper/el/ELResolverImpl.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/el/ELResolverImpl.java?rev=777470&r1=777469&r2=777470&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/el/ELResolverImpl.java (original)
+++ tomcat/trunk/java/org/apache/jasper/el/ELResolverImpl.java Fri May 22 11:15:43 2009
@@ -147,12 +147,12 @@
 
 	public static ELResolver getDefaultResolver() {
 	    if (Constants.IS_SECURITY_ENABLED) {
-	        ELResolver defaultResolver = new CompositeELResolver();
-	        ((CompositeELResolver) defaultResolver).add(new MapELResolver());
-	        ((CompositeELResolver) defaultResolver).add(new ResourceBundleELResolver());
-	        ((CompositeELResolver) defaultResolver).add(new ListELResolver());
-	        ((CompositeELResolver) defaultResolver).add(new ArrayELResolver());
-	        ((CompositeELResolver) defaultResolver).add(new BeanELResolver());
+	        CompositeELResolver defaultResolver = new CompositeELResolver();
+	        defaultResolver.add(new MapELResolver());
+	        defaultResolver.add(new ResourceBundleELResolver());
+	        defaultResolver.add(new ListELResolver());
+	        defaultResolver.add(new ArrayELResolver());
+	        defaultResolver.add(new BeanELResolver());
 	        return defaultResolver;
 	    } else {
 	        return DefaultResolver;



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message