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

JavaDoc: wrong argument names in Point.translate description

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.2.0
    • docs
    • beta
    • generic
    • generic



      Name: el35337 Date: 09/16/98


      The JavaDoc page describing the Point.translate method looks as follows:

      void translate(int x, int y)
        Translates this point, at location (x, y), by dx along the x axis
        and dy along the y axis so that it now represents the point (x + dx,
        y + dy).

      The arguments should be: dx and dy (NOT x and y)

      'void translate(int dx, int dy)' would be right.
      (Review ID: 38863)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            elarsen Erik Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: