...
The method AbsAdd()
computes and returns the sum of the absolute value of parameters x
and y
. It lacks parameter validation, in violation of MET00-J. Validate method parametersarguments. Consequently, it can produce incorrect results either because of integer overflow or when either or both of its arguments are Math.abs(Integer.MIN_VALUE)
.
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="7aaf60cc41d6c5b5-01b2c8c4-49b74b27-ba12891a-5832d73219a052af931d3644"><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="f8a1dc115549bc37-de098ae9-4f5c419f-89e7aa47-92e8426327c5259d1ae22c2d"><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="1553a8ddde162ae2-cff797f5-4e8b4343-8995b9d2-1f06ed1bfb9d1c03fe88d07c"><ac:plain-text-body><![CDATA[ | [[JLS 2005 | AA. Bibliography#JLS 05]] | §14.10 The assert Statement | ]]></ac:plain-text-body></ac:structured-macro> |
...