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

Doc error(translate)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.2.0, 1.3.0
    • docs
    • beta
    • generic, sparc
    • generic, solaris_2.5



      Name: skT45625 Date: 05/12/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 documentation for the Point class, the following appears:

      translate
      public 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).
      Parameters:
      x - the distance to move this point along the x axis.
      y - the distance to move this point along the y axis.

      since x & y are the distance to move the point (which is at x,y) perhaps these
      parameters should be labeled dx and dy. This would make the description much
      more understandable.


      Thanks in advance
      (Review ID: 104819)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: