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

This commit is contained in:
Ben Alex 2005-01-03 01:08:54 +00:00
parent 23e5cd4972
commit db51400570
1 changed files with 4 additions and 5 deletions

View File

@ -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());
}
}