@ SuppressWarnings ( "unchecked" ) private void checkForProblemsWithLoggerMethods ( ) throws ClassNotFoundException { String callingClsName = getClassConstantOperand ( ) ; if ( ! ( callingClsName . endsWith ( "Log" ) || ( callingClsName . endsWith ( "Logger" ) ) ) || ( stack . getStackDepth ( ) == 0 ) ) { return ; } String sig = getSigConstantOperand ( ) ; if ( SIG_STRING_AND_THROWABLE_TO_VOID . equals ( sig ) || SIG_OBJECT_AND_THROWABLE_TO_VOID . equals ( sig ) ) { checkForProblemsWithLoggerThrowableMethods ( ) ; } else if ( SignatureBuilder . SIG_OBJECT_TO_VOID . equals ( sig ) ) { checkForProblemsWithLoggerSingleArgumentMethod ( ) ; } else if ( ( SLF4J_LOGGER . equals ( callingClsName ) || LOG4J2_LOGGER . equals ( callingClsName ) ) && ( SignatureBuilder . SIG_STRING_TO_VOID . equals ( sig ) || SignatureBuilder . SIG_STRING_AND_OBJECT_TO_VOID . equals ( sig ) || SIG_STRING_AND_TWO_OBJECTS_TO_VOID . equals ( sig ) || SIG_STRING_AND_OBJECT_ARRAY_TO_VOID . equals ( sig ) ) ) { checkForProblemsWithLoggerParameterisedMethods ( sig ) ; } }
looks for a variety of logging issues with log statements