[jboss-cvs] JBossAS SVN: r95614 - projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Oct 27 11:29:26 EDT 2009
Author: jesper.pedersen
Date: 2009-10-27 11:29:25 -0400 (Tue, 27 Oct 2009)
New Revision: 95614
Modified:
projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal/SecurityActions.java
Log:
Remove unneeded methods
Modified: projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal/SecurityActions.java
===================================================================
--- projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal/SecurityActions.java 2009-10-27 15:23:11 UTC (rev 95613)
+++ projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal/SecurityActions.java 2009-10-27 15:29:25 UTC (rev 95614)
@@ -26,7 +26,6 @@
import java.net.URLClassLoader;
import java.security.AccessController;
import java.security.PrivilegedAction;
-import java.util.Properties;
/**
* Privileged Blocks
@@ -47,9 +46,9 @@
*/
static ClassLoader getThreadContextClassLoader()
{
- return (ClassLoader)AccessController.doPrivileged(new PrivilegedAction<Object>()
+ return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>()
{
- public Object run()
+ public ClassLoader run()
{
return Thread.currentThread().getContextClassLoader();
}
@@ -73,30 +72,15 @@
}
/**
- * Get the system properties
- * @return The properties
- */
- static Properties getSystemProperties()
- {
- return (Properties)AccessController.doPrivileged(new PrivilegedAction<Object>()
- {
- public Object run()
- {
- return System.getProperties();
- }
- });
- }
-
- /**
* Get a system property
* @param name The property name
* @return The property value
*/
static String getSystemProperty(final String name)
{
- return (String)AccessController.doPrivileged(new PrivilegedAction<Object>()
+ return AccessController.doPrivileged(new PrivilegedAction<String>()
{
- public Object run()
+ public String run()
{
return System.getProperty(name);
}
@@ -104,23 +88,6 @@
}
/**
- * Set a system property
- * @param name The property name
- * @param value The property value
- */
- static void setSystemProperty(final String name, final String value)
- {
- AccessController.doPrivileged(new PrivilegedAction<Object>()
- {
- public Object run()
- {
- System.setProperty(name, value);
- return null;
- }
- });
- }
-
- /**
* Create an URLClassLoader
* @param urls The urls
* @param parent The parent class loader
@@ -128,9 +95,9 @@
*/
static URLClassLoader createURLCLassLoader(final URL[] urls, final ClassLoader parent)
{
- return (URLClassLoader)AccessController.doPrivileged(new PrivilegedAction<Object>()
+ return AccessController.doPrivileged(new PrivilegedAction<URLClassLoader>()
{
- public Object run()
+ public URLClassLoader run()
{
return new URLClassLoader(urls, parent);
}
More information about the jboss-cvs-commits
mailing list