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

Doc Error: Code Conventions 'if else-if' example is missing a space.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.3.0
    • docs
    • beta2
    • generic
    • generic



      Name: rmT116609 Date: 12/15/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      In the following document:
      http://java.sun.com/docs/codeconv/html/CodeConventions.doc6.html

      Section 7.4, the "if else-if" example is missing a space after the final "else"
      and before the "{". (I normally wouldn't care, except that this is a Code
      Conventions doc after all. ;)

      Current text:
      if (condition) {
          statements;
      } else if (condition) {
          statements;
      } else{
          statements;
      }

      Should be:
      if (condition) {
          statements;
      } else if (condition) {
          statements;
      } else {
          statements;
      }
      (Review ID: 113868)
      ======================================================================

            shommel Scott Hommel (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: