bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject [bval] 12/50: don't use AccessController if no SecMgr
Date Mon, 10 Jun 2019 05:02:06 GMT
This is an automated email from the ASF dual-hosted git repository.

rmannibucau pushed a commit to tag 0.4
in repository https://gitbox.apache.org/repos/asf/bval.git

commit 42a26480f64bf91b39d3dcd30d2676b789c54da3
Author: mbenson <mbenson@13f79535-47bb-0310-9956-ffa450edef68>
AuthorDate: Fri Apr 6 14:47:53 2012 +0000

    don't use AccessController if no SecMgr
    
    git-svn-id: http://svn.apache.org/repos/asf/bval/trunk@1310363 13f79535-47bb-0310-9956-ffa450edef68
---
 bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java b/bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java
index 214c7fd..38b79e4 100644
--- a/bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java
+++ b/bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java
@@ -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