Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8129233

Typo in "Annitations Basics" in Java Tutorials

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • docs
    • None

      Typo found here:

      http://docs.oracle.com/javase/tutorial/java/annotations/basics.html

       The annotation can include elements, which can be named or unnamed, and there are values for those elements:

      @Author(
         name = "Benjamin Franklin",
         date = "3/27/2003"
      )
      class MyClass() { ... }


      There should not be any parentheses after MyClass.

            bhoran Bernard Horan (Inactive)
            rgallard Raymond Gallardo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: