[jboss-remoting-commits] JBoss Remoting SVN: r3825 - remoting2/branches/2.x/src/main/org/jboss/remoting.
jboss-remoting-commits at lists.jboss.org
jboss-remoting-commits at lists.jboss.org
Tue Apr 1 23:07:04 EDT 2008
Author: ron.sigal at jboss.com
Date: 2008-04-01 23:07:03 -0400 (Tue, 01 Apr 2008)
New Revision: 3825
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java
Log:
JBREM-934: Use SystemUtility.getSystemProperty() calls.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java 2008-04-02 03:05:55 UTC (rev 3824)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java 2008-04-02 03:07:03 UTC (rev 3825)
@@ -24,10 +24,8 @@
import java.security.AccessController;
import java.security.PrivilegedAction;
-import java.security.PrivilegedActionException;
-import java.security.PrivilegedExceptionAction;
-import org.jboss.remoting.loading.ClassByteClassLoader;
+import org.jboss.remoting.util.SystemUtility;
/**
* @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
@@ -55,15 +53,8 @@
static
{
boolean precompatibleFlag = false;
- String precompatible = (String)AccessController.doPrivileged( new PrivilegedAction()
- {
- public Object run()
- {
- return System.getProperty(PRE_2_0_COMPATIBLE);
- }
- });
+ String precompatible = SystemUtility.getSystemProperty(PRE_2_0_COMPATIBLE);
-
if(precompatible != null && precompatible.length() > 0)
{
precompatibleFlag = Boolean.valueOf(precompatible).booleanValue();
@@ -76,15 +67,8 @@
}
else
{
- String userDefinedVersion = (String) AccessController.doPrivileged( new PrivilegedAction()
- {
- public Object run()
- {
- return System.getProperty(REMOTING_VERSION_TO_USE);
- }
- });
-
-
+ String userDefinedVersion = SystemUtility.getSystemProperty(REMOTING_VERSION_TO_USE);
+
if(userDefinedVersion != null && userDefinedVersion.length() > 0)
{
byte userByteVersion = new Byte(userDefinedVersion).byteValue();
More information about the jboss-remoting-commits
mailing list