...
Wiki Markup |
---|
The _Java Language Specification_ \[java:[JLS 2005|AA. Bibliography#JLSReferences#JLS 05]\] [§8.9, "Enums"|http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.9] does not specify the use of {{ordinal()}} in programs. However, using the {{ordinal()}} method to derive the value associated with an enum constant is error-prone and should be avoided. |
Wiki Markup |
---|
According to the Java API \[java:[API 2006|AA. Bibliography#APIReferences#API 06]\], {{public final int ordinal()}}: |
...
INT09-CPP. Ensure enumeration constants map to unique values | ||||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="305c63b4d12d0480-e8722d10-4d4146f6-98e2b94a-461dd99e73b88a047e54b227"><ac:plain-text-body><![CDATA[ | [ISO/IEC TR 24772:2010 | http://www.aitcnet.org/isai/] | "Enumerator Issues [java:CCB]" | ]]></ac:plain-text-body></ac:structured-macro> |
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="26b1c5e0d2656744-2aec6eba-4cb34cc6-acc396d9-ee6cbae70c341481a70f4852"><ac:plain-text-body><![CDATA[ | [java:[JLS 2005 | AA. Bibliography#JLS References#JLS 05]] | [§8.9, "Enums" | http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.9] | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="74bad933d3b9b12d-d8bad7ce-4bc347ff-bd1f9383-ec68bfc4a6cc719f6a16b91c"><ac:plain-text-body><![CDATA[ | [java:[API 2006 | AA. Bibliography#API References#API 06]] | [Enum | http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html] | ]]></ac:plain-text-body></ac:structured-macro> |
...