예:
public class TestObject {
void test(Object object) {
if(LOG.isDebugEnabled()){
LOG.debug("some logging " + expensiveCalculation(1));
}
}
}
빠른 수정 적용 후:
public class TestObject {
void test(Object object) {
LOG.debug("some logging " + expensiveCalculation(1));
}
}
이 검사는 Log4j2와 SLF4J 로깅 프레임워크(빌더 제외)를 지원합니다.
2024.2에서 추가