
org.sonar.l10n.pmd.ProtectLogD.html Maven / Gradle / Ivy
Log.d calls should be protected by checking Config.LOGD first. Example :
public class DummyActivity extends Activity {
public void foo() {
Log.d("TAG", "msg1"); // Bad
bar();
if (Config.LOGD) Log.d("TAG", "msg1"); // Good
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy