Author: markt
Date: Sat Dec 18 17:43:41 2010
New Revision: 1050683

URL: http://svn.apache.org/viewvc?rev=1050683&view=rev
Log:
Remove unused code

Modified:
    tomcat/trunk/java/org/apache/el/util/ReflectionUtil.java

Modified: tomcat/trunk/java/org/apache/el/util/ReflectionUtil.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/util/ReflectionUtil.java?rev=1050683&r1=1050682&r2=1050683&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/util/ReflectionUtil.java (original)
+++ tomcat/trunk/java/org/apache/el/util/ReflectionUtil.java Sat Dec 18 
17:43:41 2010
@@ -16,9 +16,6 @@
  */
 package org.apache.el.util;
 
-import java.beans.IntrospectionException;
-import java.beans.Introspector;
-import java.beans.PropertyDescriptor;
 import java.lang.reflect.Array;
 import java.lang.reflect.Method;
 import java.util.Arrays;
@@ -26,11 +23,7 @@ import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
 
-import javax.el.ELException;
 import javax.el.MethodNotFoundException;
-import javax.el.PropertyNotFoundException;
-
-import org.apache.el.lang.ELSupport;
 
 
 /**
@@ -41,8 +34,6 @@ import org.apache.el.lang.ELSupport;
  */
 public class ReflectionUtil {
 
-    protected static final String[] EMPTY_STRING = new String[0];
-
     protected static final String[] PRIMITIVE_NAMES = new String[] { "boolean",
             "byte", "char", "double", "float", "int", "long", "short", "void" 
};
 
@@ -321,22 +312,4 @@ public class ReflectionUtil {
         }
         return null;
     }
-
-    public static PropertyDescriptor getPropertyDescriptor(Object base,
-            Object property) throws ELException, PropertyNotFoundException {
-        String name = ELSupport.coerceToString(property);
-        try {
-            PropertyDescriptor[] desc = Introspector.getBeanInfo(
-                    base.getClass()).getPropertyDescriptors();
-            for (int i = 0; i < desc.length; i++) {
-                if (desc[i].getName().equals(name)) {
-                    return desc[i];
-                }
-            }
-        } catch (IntrospectionException ie) {
-            throw new ELException(ie);
-        }
-        throw new PropertyNotFoundException(MessageFactory.get(
-                "error.property.notfound", base, name));
-    }
 }



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

Reply via email to