bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject [bval] 11/50: rename method
Date Mon, 10 Jun 2019 05:02:05 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 355c55e501bf91a559b2e999097901f1fd1d1073
Author: mbenson <mbenson@13f79535-47bb-0310-9956-ffa450edef68>
AuthorDate: Fri Apr 6 14:46:59 2012 +0000

    rename method
    
    git-svn-id: http://svn.apache.org/repos/asf/bval/trunk@1310361 13f79535-47bb-0310-9956-ffa450edef68
---
 bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java  | 5 +++--
 .../org/apache/bval/jsr303/resolver/DefaultTraversableResolver.java  | 2 +-
 2 files changed, 4 insertions(+), 3 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 dd22481..214c7fd 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
@@ -105,8 +105,8 @@ public class PrivilegedActions {
      * @return Class
      * @exception Exception
      */
-    public static Class<?> getUtilClass(final ClassLoader classLoader, final String
className) throws Exception {
-        return PrivilegedActions.run(new PrivilegedExceptionAction<Class<?>>()
{
+    public static Class<?> getClass(final ClassLoader classLoader, final String className)
throws Exception {
+        return run(new PrivilegedExceptionAction<Class<?>>() {
             public Class<?> run() throws Exception {
                 return ClassUtils.getClass(classLoader, className, true);
             }
@@ -176,6 +176,7 @@ public class PrivilegedActions {
      * @return String
      */
     public static final String getProperty(final String name) {
+        //TODO #run
         return AccessController.doPrivileged(new PrivilegedAction<String>() {
             public String run() {
                 return System.getProperty(name);
diff --git a/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/DefaultTraversableResolver.java
b/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/DefaultTraversableResolver.java
index f1d4ab4..e6fc000 100644
--- a/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/DefaultTraversableResolver.java
+++ b/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/DefaultTraversableResolver.java
@@ -76,7 +76,7 @@ public class DefaultTraversableResolver implements TraversableResolver,
CachingR
     private void initJpa() {
         final ClassLoader classLoader = getClassLoader();
         try {
-            PrivilegedActions.getUtilClass(classLoader, PERSISTENCE_UTIL_CLASSNAME);
+            PrivilegedActions.getClass(classLoader, PERSISTENCE_UTIL_CLASSNAME);
             log.log(Level.FINEST, String.format("Found %s on classpath.", PERSISTENCE_UTIL_CLASSNAME));
         } catch (Exception e) {
             log.log(Level.FINEST, String.format("Cannot find %s on classpath. All properties
will per default be traversable.", PERSISTENCE_UTIL_CLASSNAME));


Mime
View raw message