tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r653852 - in /tomcat/trunk/java/javax: el/BeanELResolver.java servlet/jsp/el/ImplicitObjectELResolver.java
Date Tue, 06 May 2008 17:51:02 GMT
Author: markt
Date: Tue May  6 10:51:01 2008
New Revision: 653852

URL: http://svn.apache.org/viewvc?rev=653852&view=rev
Log:
Code clean up - remove unnecessary casts.

Modified:
    tomcat/trunk/java/javax/el/BeanELResolver.java
    tomcat/trunk/java/javax/servlet/jsp/el/ImplicitObjectELResolver.java

Modified: tomcat/trunk/java/javax/el/BeanELResolver.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/el/BeanELResolver.java?rev=653852&r1=653851&r2=653852&view=diff
==============================================================================
--- tomcat/trunk/java/javax/el/BeanELResolver.java (original)
+++ tomcat/trunk/java/javax/el/BeanELResolver.java Tue May  6 10:51:01 2008
@@ -287,7 +287,7 @@
 		Method mp = null;
 		for (int i = 0; i < inf.length; i++) {
 			try {
-				mp = inf[i].getMethod(m.getName(), (Class[]) m.getParameterTypes());
+				mp = inf[i].getMethod(m.getName(), m.getParameterTypes());
 				mp = getMethod(mp.getDeclaringClass(), mp);
 				if (mp != null) {
 					return mp;
@@ -298,7 +298,7 @@
 		Class sup = type.getSuperclass();
 		if (sup != null) {
 			try {
-				mp = sup.getMethod(m.getName(), (Class[]) m.getParameterTypes());
+				mp = sup.getMethod(m.getName(), m.getParameterTypes());
 				mp = getMethod(mp.getDeclaringClass(), mp);
 				if (mp != null) {
 					return mp;

Modified: tomcat/trunk/java/javax/servlet/jsp/el/ImplicitObjectELResolver.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/jsp/el/ImplicitObjectELResolver.java?rev=653852&r1=653851&r2=653852&view=diff
==============================================================================
--- tomcat/trunk/java/javax/servlet/jsp/el/ImplicitObjectELResolver.java (original)
+++ tomcat/trunk/java/javax/servlet/jsp/el/ImplicitObjectELResolver.java Tue May  6 10:51:01
2008
@@ -320,8 +320,7 @@
                             while (e.hasMoreElements()) {
                                 list.add(e.nextElement().toString());
                             }
-                            return (String[]) list.toArray(new String[list
-                                    .size()]);
+                            return list.toArray(new String[list.size()]);
                         }
                         return null;
                     }
@@ -497,7 +496,7 @@
             }
 
             public Object getKey() {
-                return (Object) this.key;
+                return this.key;
             }
 
             public Object getValue() {



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


Mime
View raw message