I have a logger class with an isDebugEnabled()
method. This is duplicated over 16,000 times so we now check if it is enabled in the method itself as opposed to everywhere in the project.
if ( logger.isDebugEnabled() )
{
logger.logMethodEntryMessage();
}
I want to remove the if statement but keep the logger.logMethodEntryMessage();
everywhere in the project. Is it possible to use Notepad++ and regex or eclipse and regex to accomplish this?
Thanks for your help