Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -132,25 +132,15 @@ public void handleMethodInstruction(LocationMethodVisitor mv, String name, Strin
case "throwing":
handleCatchingThrowing(mv, descriptor, "throwing".equals(name));
break;
case "isDebugEnabled":
case "isEnabled":
case "isErrorEnabled":
case "isFatalEnabled":
case "isInfoEnabled":
case "isTraceEnabled":
case "isWarnEnabled":
case "logMessage":
// These are NOPs
mv.invokeInterface(LOGGER_TYPE, new Method(name, descriptor));
break;
case "traceEntry":
handleTraceEntry(mv, descriptor);
break;
case "traceExit":
handleTraceExit(mv, descriptor);
break;
default:
throw new ConversionException("Unsupported method 'org.apache.logging.log4j.Logger#" + name + "'.");
// The default is to not change the original call
mv.invokeInterface(LOGGER_TYPE, new Method(name, descriptor));
}
}

Expand Down
Loading