Java


JAVA.DEBUG.MEDF : Method Enables Debug Features (Java)

Summary

A method enabling debug features should not be called in production code.

Some operations should not be performed in production code, since they have no effect or have unpredictable effects, or since they might compromise the availability or security of your system.

Properties

Class Name Method Enables Debug Features (Java)
Significance reliability
Mnemonic JAVA.DEBUG.MEDF
Categories
CWE CWE:489 Active Debug Code
CERT-Java CERT-Java:ENV06-J Production code must not contain debugging entry points
Availability Available for Java only.
Enabling Checks for this warning class are enabled by default. To disable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += discard class="Method Enables Debug Features (Java)"

Resolution

Verify if the operation is adequate for production code. Remove it or transform it if that is not the case.

Relevant Configuration File Parameters

The following configuration file parameters affect checks for this warning class.