bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1310363 - /bval/trunk/bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java
Date Fri, 06 Apr 2012 14:47:54 GMT
Author: mbenson
Date: Fri Apr  6 14:47:53 2012
New Revision: 1310363

URL: http://svn.apache.org/viewvc?rev=1310363&view=rev
Log:
don't use AccessController if no SecMgr

Modified:
    bval/trunk/bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java

Modified: bval/trunk/bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java
URL: http://svn.apache.org/viewvc/bval/trunk/bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java?rev=1310363&r1=1310362&r2=1310363&view=diff
==============================================================================
--- bval/trunk/bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java (original)
+++ bval/trunk/bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java Fri Apr
 6 14:47:53 2012
@@ -176,8 +176,7 @@ public class PrivilegedActions {
      * @return String
      */
     public static final String getProperty(final String name) {
-        //TODO #run
-        return AccessController.doPrivileged(new PrivilegedAction<String>() {
+        return run(new PrivilegedAction<String>() {
             public String run() {
                 return System.getProperty(name);
             }



Mime
View raw message