Ver código fonte

Fix warning regarding logger should be accessed in a static way.

Ben Alex 20 anos atrás
pai
commit
db51400570

+ 4 - 5
adapters/jboss/src/main/java/org/acegisecurity/adapters/jboss/JbossIntegrationFilter.java

@@ -61,9 +61,8 @@ public class JbossIntegrationFilter extends AbstractIntegrationFilter {
             Context lc = this.getLookupContext();
 
             if (lc == null) {
-                if (super.logger.isWarnEnabled()) {
-                    super.logger.warn(
-                        "Could not obtain a Context to perform lookup");
+                if (logger.isWarnEnabled()) {
+                    logger.warn("Could not obtain a Context to perform lookup");
                 }
 
                 return null;
@@ -75,8 +74,8 @@ public class JbossIntegrationFilter extends AbstractIntegrationFilter {
                 subject = (Subject) result;
             }
         } catch (NamingException ne) {
-            if (super.logger.isWarnEnabled()) {
-                super.logger.warn("Lookup on Subject failed "
+            if (logger.isWarnEnabled()) {
+                logger.warn("Lookup on Subject failed "
                     + ne.getLocalizedMessage());
             }
         }