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

MITRE 2009CWE

CWE ID 617, "Reachable Assertion"

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="e33eae1b62c953be-08d83576-43ed4aeb-a5afac94-4cc9738bf65ff96e1f66bb59"><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="946b2d3fd364eb60-4c90da86-4a8949ea-a2b8bd6d-6fd78fb9af8bd75fb5f4fcf1"><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="1b65ecff4f78de5d-35c2d447-4dde465d-8810a20f-145dbf293c0d15becf238446"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

14.10 The assert Statement

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

...