You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mc...@apache.org on 2011/10/17 00:08:05 UTC
svn commit: r1184945 -
/commons/proper/ognl/branches/new-cache-approach/src/main/java/org/apache/commons/ognl/OgnlRuntime.java
Author: mcucchiara
Date: Sun Oct 16 22:08:05 2011
New Revision: 1184945
URL: http://svn.apache.org/viewvc?rev=1184945&view=rev
Log:
inline variable
Modified:
commons/proper/ognl/branches/new-cache-approach/src/main/java/org/apache/commons/ognl/OgnlRuntime.java
Modified: commons/proper/ognl/branches/new-cache-approach/src/main/java/org/apache/commons/ognl/OgnlRuntime.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/branches/new-cache-approach/src/main/java/org/apache/commons/ognl/OgnlRuntime.java?rev=1184945&r1=1184944&r2=1184945&view=diff
==============================================================================
--- commons/proper/ognl/branches/new-cache-approach/src/main/java/org/apache/commons/ognl/OgnlRuntime.java (original)
+++ commons/proper/ognl/branches/new-cache-approach/src/main/java/org/apache/commons/ognl/OgnlRuntime.java Sun Oct 16 22:08:05 2011
@@ -699,18 +699,7 @@ public class OgnlRuntime
return getParameterTypes( m );
}
- Class<?>[] types = _genericMethodParameterTypesCache.get( new GenericMethodParameterTypeCacheEntry( m, type ) );
-
- /*if ( types != null )
- {
- ParameterizedType genericSuperclass = (ParameterizedType) type.getGenericSuperclass( );
- if ( Arrays.equals( types, genericSuperclass.getActualTypeArguments( ) ) )
- {
- return types;
- }
- }
-*/
- return types;
+ return _genericMethodParameterTypesCache.get( new GenericMethodParameterTypeCacheEntry( m, type ) );
}
static Class<?> findType( Type[] types, Class<?> type )