bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1310361 - in /bval/trunk: bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/DefaultTraversableResolver.java
Date Fri, 06 Apr 2012 14:47:00 GMT
Author: mbenson
Date: Fri Apr  6 14:46:59 2012
New Revision: 1310361

URL: http://svn.apache.org/viewvc?rev=1310361&view=rev
Log:
rename method

Modified:
    bval/trunk/bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java
    bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/DefaultTraversableResolver.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=1310361&r1=1310360&r2=1310361&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:46:59 2012
@@ -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);

Modified: bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/DefaultTraversableResolver.java
URL: http://svn.apache.org/viewvc/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/DefaultTraversableResolver.java?rev=1310361&r1=1310360&r2=1310361&view=diff
==============================================================================
--- bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/DefaultTraversableResolver.java
(original)
+++ bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/DefaultTraversableResolver.java
Fri Apr  6 14:46:59 2012
@@ -76,7 +76,7 @@ public class DefaultTraversableResolver 
     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