Wiki Markup |
---|
Never use assertions to validate parameters of public methods. According to the Java Language Specification \[[JLS 2005|AA. Bibliography#JLS 05]\], Section §14.10, "The {{assert}} Statement," |
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="7b376df6779b6ec1-2abd6228-4856465d-8e1f9cf4-10a80583279adfb0b44816da"><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="9725930aa739baac-72c55993-407743e8-b8f0a1f6-c4d9aba89c72248bd9e92b1e"><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="fd193fe84cb4060f-a01f4fdb-4c634661-888a9f9a-3b2fb646220f13c94522f92b"><ac:plain-text-body><![CDATA[ | [[JLS 2005 | AA. Bibliography#JLS 05]] | 14 §14.10 The assert Statement | ]]></ac:plain-text-body></ac:structured-macro> |
...