8173730: Stop including enhanced for-loop tip for enum values() method
authordarcy
Tue, 25 Sep 2018 11:31:55 -0700
changeset 51872 a6bdb6d5f167
parent 51871 8f66a57054b7
child 51873 e0153fc0a843
8173730: Stop including enhanced for-loop tip for enum values() method Reviewed-by: jjg
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/doclets.properties
--- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/doclets.properties	Tue Sep 25 10:30:32 2018 -0700
+++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/doclets.properties	Tue Sep 25 11:31:55 2018 -0700
@@ -234,12 +234,7 @@
 #Documentation for Enums
 doclet.enum_values_doc.fullbody=\
  Returns an array containing the constants of this enum type, in\n\
- the order they are declared. This method may be used to iterate\n\
- over the constants as follows:\n\
- <pre>\n\
- for ({0} c : {0}.values())\n\
- &nbsp;   System.out.println(c);\n\
- </pre>
+ the order they are declared.
 
 doclet.enum_values_doc.return=\
 an array containing the constants of this enum type, in the order they are declared