Return-Path: Delivered-To: apmail-openwebbeans-commits-archive@www.apache.org Received: (qmail 99633 invoked from network); 15 Mar 2011 11:58:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Mar 2011 11:58:13 -0000 Received: (qmail 96721 invoked by uid 500); 15 Mar 2011 11:58:13 -0000 Delivered-To: apmail-openwebbeans-commits-archive@openwebbeans.apache.org Received: (qmail 96704 invoked by uid 500); 15 Mar 2011 11:58:13 -0000 Mailing-List: contact commits-help@openwebbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwebbeans.apache.org Delivered-To: mailing list commits@openwebbeans.apache.org Received: (qmail 96696 invoked by uid 99); 15 Mar 2011 11:58:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2011 11:58:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2011 11:58:12 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id CFE2F2388906; Tue, 15 Mar 2011 11:57:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1081743 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/SecurityUtil.java Date: Tue, 15 Mar 2011 11:57:49 -0000 To: commits@openwebbeans.apache.org From: struberg@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110315115749.CFE2F2388906@eris.apache.org> Author: struberg Date: Tue Mar 15 11:57:49 2011 New Revision: 1081743 URL: http://svn.apache.org/viewvc?rev=1081743&view=rev Log: OWB-545 remove now unused methods 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=1081743&r1=1081742&r2=1081743&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 11:57:49 2011 @@ -31,7 +31,7 @@ import java.util.Properties; import javassist.util.proxy.ProxyFactory; import org.apache.webbeans.exception.WebBeansException; -/** @deprecated use SecurityService instaed */ +/** @deprecated use SecurityService instead */ public class SecurityUtil { @@ -50,7 +50,6 @@ public class SecurityUtil private static final PrivilegedActionGetSystemProperties SYSTEM_PROPERTY_ACTION = new PrivilegedActionGetSystemProperties(); @SuppressWarnings("unchecked") - /** @deprecated use SecurityService instaed */ public static Constructor[] doPrivilegedGetDeclaredConstructors(Class clazz) { Object obj = AccessController.doPrivileged( @@ -58,16 +57,6 @@ public class SecurityUtil return (Constructor[])obj; } - public static Method doPrivilegedGetDeclaredMethod(Class clazz, String name, Class... parameterTypes) throws NoSuchMethodException - { - Object obj = AccessController.doPrivileged( - new PrivilegedActionForClass(clazz, new Object[] {name, parameterTypes}, METHOD_CLASS_GETDECLAREDMETHOD)); - if (obj instanceof NoSuchMethodException) - { - throw (NoSuchMethodException)obj; - } - return (Method)obj; - } public static Method[] doPrivilegedGetDeclaredMethods(Class clazz) { @@ -187,11 +176,6 @@ public class SecurityUtil return AccessController.doPrivileged(new PrivilegedActionForObjectCreation(clazz)); } - public static void doPrivilegedSetSystemProperty(String propertyName, String value) - { - AccessController.doPrivileged(new PrivilegedActionForSetProperty(propertyName, value)); - } - public static Properties doPrivilegedGetSystemProperties() { return AccessController.doPrivileged(SYSTEM_PROPERTY_ACTION); @@ -217,27 +201,6 @@ public class SecurityUtil } - protected static class PrivilegedActionForSetProperty implements PrivilegedAction - { - private final String propertyName; - - private final String value; - - protected PrivilegedActionForSetProperty(String propertyName, String value) - { - this.propertyName = propertyName; - this.value = value; - } - - @Override - public String run() - { - System.setProperty(propertyName, value); - return null; - } - - } - protected static class PrivilegedActionGetSystemProperties implements PrivilegedAction {