Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Related Guidelines

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="722e362b-034f-43ea-9c0d-9078b1bc841d"><ac:plain-text-body><![CDATA[

[[MITRE 2009AA. Bibliography#MITRE 09]]

[CWE -617http://cwe.mitre.org/data/definitions/617.html] ID 617, "Reachable Assertion"

]]></ac:plain-text-body></ac:structured-macro>

Bibliography

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="47239d4251c96749-caf05bca-4c234e14-a6769424-d849205dcb496a5706737a2d"><ac:plain-text-body><![CDATA[

[[Daconta 2003

AA. Bibliography#Daconta 03]]

Item 7: My Assertions Are Not Gratuitous

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="58fdccadac32a15c-b3bf6e4e-4cbe45b1-964ab7b7-f2b2d943e5e91611df076823"><ac:plain-text-body><![CDATA[

[[ESA 2005

AA. Bibliography#ESA 05]]

Rule 68: Explicitly check method parameters for validity, and throw an adequate exception in case they are not valid. Do not use the assert statement for this purpose

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="19579f26573dfcf7-17c1ad90-458948a6-81998e68-9d36c4f9fbbc32f216d414bc"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

14.10 The assert Statement

]]></ac:plain-text-body></ac:structured-macro>

...