Using Structural Finds?

I have a standard structure throughtout my code base that looks like this:

if (s_logger.isEnabledFor(Priority.INFO)) {"Some Message");

I would like to find instances of s_logger being used to send a message that is not protected by the conditional based on the current Priority level.

Does anyone know how to do that? Can you use a structural search to look for the use of$SOME_MESSGE$) that is not within th context of an if statement whose condition is the s_logger.isEnabledFor($SOME_LEVEL$)?


- Eric

Please sign in to leave a comment.