...
The intent of the expression in this noncompliant code example is to add the variable OFFSET
to the result of the bitwise logical &
AND between x
and MASK
.
Code Block | ||
---|---|---|
| ||
public static final int MASK = 1337; public static final int OFFSET = -1337; public static int computeCode(int x) { return x & MASK + OFFSET; } |
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="1121cb710140f9a2-779cd67e-4c514805-9877895a-3d3c958f39e41676a959c160"><ac:plain-text-body><![CDATA[ | [[ESA 2005 | AA. References#ESA 05]] | Rule 65: Use parentheses to explicitly indicate the order of execution of numerical operators | ]]></ac:plain-text-body></ac:structured-macro> | |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c96fbc183bb06cb7-2ef6d16b-45b140b2-a853ba52-cadda585493ccad97156ce33"><ac:plain-text-body><![CDATA[ | [[Tutorials 2008 | AA. References#Tutorials 08]] | [Expressions, Statements, and Blocks | http://java.sun.com/docs/books/tutorial/java/nutsandbolts/expressions.html] | ]]></ac:plain-text-body></ac:structured-macro> |
| |||||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="3b21788ad2a8a7f6-ba5297ca-4bac4623-81f392eb-acd696b7264055c3883d0eec"><ac:plain-text-body><![CDATA[ | [[Rogue 2000 | AA. References#Rogue 2000]] | Rule 77: Clarify the order of operations with parentheses | ]]></ac:plain-text-body></ac:structured-macro> |
...