Make security UI more robust
[lgpl/argeo-commons.git] / security / eclipse / plugins / org.argeo.security.ui.application / src / main / java / org / argeo / security / ui / application / AbstractSecureApplication.java
index c3bf6b1131adf9adf933ec3e03c5f4c69e191e48..3a92e5273058ca2914e3253bc84787cf3d3c5d27 100644 (file)
@@ -23,6 +23,7 @@ public abstract class AbstractSecureApplication implements IApplication {
 
        protected abstract WorkbenchAdvisor createWorkbenchAdvisor();
 
+       @SuppressWarnings("unchecked")
        public Object start(IApplicationContext context) throws Exception {
 
                Integer returnCode = null;
@@ -49,8 +50,6 @@ public abstract class AbstractSecureApplication implements IApplication {
                                log.debug("Logged in as " + username);
                        returnCode = (Integer) Subject.doAs(CurrentUser.getSubject(),
                                        getRunAction(display));
-                       if (log.isDebugEnabled())
-                               log.debug("secure action completed");
                        CurrentUser.logout();
                        return processReturnCode(returnCode);
                } catch (Exception e) {