Method ordering

This commit is contained in:
Trustin Lee 2009-05-22 06:14:09 +00:00
parent 903fde7704
commit 7452e139c1

View File

@ -88,6 +88,10 @@ public class LoggingHandler implements ChannelUpstreamHandler, ChannelDownstream
return logger;
}
public boolean isLogEnabled(@SuppressWarnings("unused") ChannelEvent e) {
return getLogger().isDebugEnabled();
}
public void log(ChannelEvent e) {
if (isLogEnabled(e)) {
String msg = e.toString();
@ -110,10 +114,6 @@ public class LoggingHandler implements ChannelUpstreamHandler, ChannelDownstream
}
}
public boolean isLogEnabled(@SuppressWarnings("unused") ChannelEvent e) {
return getLogger().isDebugEnabled();
}
public void log(String msg) {
getLogger().debug(msg);
}