rspec/rules/S106/java/rule.adoc

26 lines
459 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
----
System.out.println("My Message"); // Noncompliant
----
== Compliant Solution
----
logger.log("My Message");
----
== See
* https://wiki.sei.cmu.edu/confluence/x/nzdGBQ[CERT, ERR02-J.] - Prevent exceptions while logging data
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]