Author: struberg
Date: Wed Mar 23 13:00:16 2011
New Revision: 1084568
URL: http://svn.apache.org/viewvc?rev=1084568&view=rev
Log:
OWB-545 drop unused code
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=1084568&r1=1084567&r2=1084568&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
Wed Mar 23 13:00:16 2011
@@ -23,7 +23,6 @@ import java.security.AccessController;
import java.security.PrivilegedAction;
import javassist.util.proxy.ProxyFactory;
-import org.apache.webbeans.exception.WebBeansException;
/** @deprecated use SecurityService instead */
public class SecurityUtil
@@ -42,26 +41,16 @@ public class SecurityUtil
{
private Class<?> clazz;
- private int method;
-
protected PrivilegedActionForClass(Class<?> clazz, Object parameters,
int method)
{
this.clazz = clazz;
- this.method = method;
}
public Object run()
{
try
{
- switch (method)
- {
- case METHOD_CLASS_GETDECLAREDMETHODS:
- return clazz.getDeclaredMethods();
-
- default:
- return new WebBeansException("unknown security method:
" + method);
- }
+ return clazz.getDeclaredMethods();
}
catch (Exception exception)
{