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

javadoc first line cannot end with question mark?

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.2
    • tools



      Name: rlT66838 Date: 08/10/99


      If my first line of my javadoc comment ends in a
      question mark instead of a period, the next line
      gets included as part of the first line. Not good.

      Question marks are good for describing boolean attributes
      or methods that return a boolean value.

      I know that the requirement is to find a line that ends
      in a period and then a space, but perhaps this can be
      extended to include a quesion mark and a space also.

      -----Test Case-----------------------------
      public class JavadocDemo
      {


          /** First line.

               Second line.

          */
          public boolean correct()
          {

          }

          /** First line?

               Second line.

          */
          public boolean notCorrect()
          {

          }

      }
      (Review ID: 93457)
      ======================================================================

            gafter Neal Gafter (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: