You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2011/03/15 13:40:14 UTC

svn commit: r1081749 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/SecurityUtil.java

Author: struberg
Date: Tue Mar 15 12:40:14 2011
New Revision: 1081749

URL: http://svn.apache.org/viewvc?rev=1081749&view=rev
Log:
OWB-545 also remove now unused code from SecurityUtil

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/SecurityUtil.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/SecurityUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/SecurityUtil.java?rev=1081749&r1=1081748&r2=1081749&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/SecurityUtil.java (original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/SecurityUtil.java Tue Mar 15 12:40:14 2011
@@ -19,7 +19,6 @@
 package org.apache.webbeans.util;
 
 import java.lang.reflect.AccessibleObject;
-import java.lang.reflect.Constructor;
 import java.lang.reflect.Field;
 import java.lang.reflect.Method;
 import java.security.AccessController;
@@ -34,11 +33,6 @@ import org.apache.webbeans.exception.Web
 /** @deprecated  use SecurityService instead */
 public class SecurityUtil
 {
-
-    private static final int METHOD_CLASS_GETDECLAREDCONSTRUCTOR = 0x01;
-
-    private static final int METHOD_CLASS_GETDECLAREDCONSTRUCTORS = 0x02;
-
     private static final int METHOD_CLASS_GETDECLAREDMETHOD = 0x03;
 
     private static final int METHOD_CLASS_GETDECLAREDMETHODS = 0x04;
@@ -95,10 +89,6 @@ public class SecurityUtil
             {
                 switch (method)
                 {
-                    case METHOD_CLASS_GETDECLAREDCONSTRUCTOR:
-                        return clazz.getDeclaredConstructor((Class<?>[])parameters);
-                    case METHOD_CLASS_GETDECLAREDCONSTRUCTORS:
-                        return clazz.getDeclaredConstructors();
                     case METHOD_CLASS_GETDECLAREDMETHOD:
                         String name = (String)((Object[])parameters)[0];
                         Class<?>[] realParameters = (Class<?>[])((Object[])parameters)[1];