commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1135577 - /commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/ClassVisitor.java
Date Tue, 14 Jun 2011 13:48:18 GMT
Author: simonetripodi
Date: Tue Jun 14 13:48:18 2011
New Revision: 1135577

URL: http://svn.apache.org/viewvc?rev=1135577&view=rev
Log:
imported static methods

Modified:
    commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/ClassVisitor.java

Modified: commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/ClassVisitor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/ClassVisitor.java?rev=1135577&r1=1135576&r2=1135577&view=diff
==============================================================================
--- commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/ClassVisitor.java
(original)
+++ commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/ClassVisitor.java
Tue Jun 14 13:48:18 2011
@@ -19,12 +19,14 @@ package org.apache.commons.meiyo.classvi
  * under the License.
  */
 
+import static java.lang.System.getSecurityManager;
+import static java.security.AccessController.doPrivileged;
+
 import java.lang.annotation.Annotation;
 import java.lang.reflect.AnnotatedElement;
 import java.lang.reflect.Constructor;
 import java.lang.reflect.Field;
 import java.lang.reflect.Method;
-import java.security.AccessController;
 import java.security.PrivilegedAction;
 import java.util.Arrays;
 import java.util.Collection;
@@ -144,9 +146,9 @@ public final class ClassVisitor
     private <AE extends AnnotatedElement> void visitElements( PrivilegedAction<AE[]>
action )
     {
         AE[] annotatedElements = null;
-        if ( System.getSecurityManager() != null )
+        if ( getSecurityManager() != null )
         {
-            annotatedElements = AccessController.doPrivileged( action );
+            annotatedElements = doPrivileged( action );
         }
         else
         {



Mime
View raw message