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" |
...
Wiki Markup |
---|
\[[Daconta 2003|AA. Bibliography#Daconta 03]\] Item 7: My Assertions Are Not Gratuitous \[[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 \[[JLS 2005|AA. Bibliography#JLS 05]\] 14.10 The assert Statement |
...
MET01-J. Avoid ambiguous uses of overloadingValidate method parameters 05. Methods (MET)