geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r697458 - /geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-bootstrap/src/main/java/org/apache/geronimo/gshell/wisdom/application/ApplicationManagerImpl.java
Date Sun, 21 Sep 2008 08:19:00 GMT
Author: jdillon
Date: Sun Sep 21 01:19:00 2008
New Revision: 697458

URL: http://svn.apache.org/viewvc?rev=697458&view=rev
Log:
wee tidy

Modified:
    geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-bootstrap/src/main/java/org/apache/geronimo/gshell/wisdom/application/ApplicationManagerImpl.java

Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-bootstrap/src/main/java/org/apache/geronimo/gshell/wisdom/application/ApplicationManagerImpl.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-bootstrap/src/main/java/org/apache/geronimo/gshell/wisdom/application/ApplicationManagerImpl.java?rev=697458&r1=697457&r2=697458&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-bootstrap/src/main/java/org/apache/geronimo/gshell/wisdom/application/ApplicationManagerImpl.java
(original)
+++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-bootstrap/src/main/java/org/apache/geronimo/gshell/wisdom/application/ApplicationManagerImpl.java
Sun Sep 21 01:19:00 2008
@@ -331,7 +331,7 @@
             //        the right approache at all :-(
             //
 
-            private final ApplicationSecurityManager securityManager = new ApplicationSecurityManager();
+            private final ApplicationSecurityManager sm = new ApplicationSecurityManager();
 
             public Object invoke(final Object proxy, final Method method, final Object[]
args) throws Throwable {
                 assert proxy != null;
@@ -342,8 +342,8 @@
                     return method.invoke(this, args);
                 }
 
-                SecurityManager previous = System.getSecurityManager();
-                System.setSecurityManager(securityManager);
+                final SecurityManager prevSM = System.getSecurityManager();
+                System.setSecurityManager(sm);
                 try {
                     return method.invoke(shell, args);
                 }
@@ -351,7 +351,7 @@
                     throw e.getTargetException();
                 }
                 finally {
-                    System.setSecurityManager(previous);
+                    System.setSecurityManager(prevSM);
                 }
             }
         };



Mime
View raw message