Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this noncompliant code example, a variable of type int (big) is multiplied by a value of type float one. In this case, numeric promotions require that big is promoted to the type float before the multiplication occurs, resulting in loss of precision. (See guideline "NUM17-J. Beware of precision loss when converting primitive integers to floating-point".)

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="bb75aa53ada7eafa-64f72f99-4eee42bb-97139644-5645b528d460a936ff5090eb"><ac:plain-text-body><![CDATA[

[[Bloch 2005

AA. Bibliography#Bloch 05]]

Puzzle 9: "Tweedledum"

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

 

Puzzle 31: "Ghost of Looper"

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f2ff2a582f4d7543-a0cc5a94-44db4255-952f80d5-4ccc73bc5ef59c2cb54c40f2"><ac:plain-text-body><![CDATA[

[[Findbugs 2008

AA. Bibliography#Findbugs 08]]

"BIT: Bitwise OR of signed byte value"

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

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="214acc3ac318de4a-c5709ae6-42084db9-9e20b7f0-f270d26c1c7cbe5f4fb4922d"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

[§4.2.2, "Integer Operations"

http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.2.2]

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

 

§5.6, "Numeric Promotions"

 

§15.26.2, "Compound Assignment Operators"

...