Stop including enhanced for-loop tip for enum values() method

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 12
    • Affects Version/s: 8, 9
    • Component/s: tools
    • 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.

            Assignee:
            Joe Darcy
            Reporter:
            Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: