-
Enhancement
-
Resolution: Fixed
-
P4
-
8, 9
-
b13
-
Not verified
Since JDK 5, the javadoc for the implicit values() method of an enum has included text like:
"This [values()] method may be used to iterate over the constants as follows:
for (RoundingMode c : RoundingMode.values())
System.out.println(c);"
This text was a useful tip in 2004 when JDK 5 shipped and the enhanced for-loop was new, but it should be assumed as common knowledge now and thus just clutter in the javadoc output.
"This [values()] method may be used to iterate over the constants as follows:
for (RoundingMode c : RoundingMode.values())
System.out.println(c);"
This text was a useful tip in 2004 when JDK 5 shipped and the enhanced for-loop was new, but it should be assumed as common knowledge now and thus just clutter in the javadoc output.
- relates to
-
JDK-8211127 TestNewLanguageFeatures.java fails after JDK-8173730
-
- Resolved
-
-
JDK-8225389 8.9.3: Simplify implicit declaration of values() and valueOf(String)
-
- Resolved
-