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

DateFormat.format() with StringBuffer result has wrong @return documentation

    • beta
    • x86
    • windows_nt

      Name: rmT116609 Date: 01/29/2003

      A DESCRIPTION OF THE PROBLEM :
      In class DateFormat in java.text, the documentation for

      public abstract StringBuffer format(Date date,
                                          StringBuffer toAppendTo,
                                          FieldPosition fieldPosition)
      and

      public final StringBuffer format(Object obj,
                                       StringBuffer toAppendTo,
                                       FieldPosition fieldPosition)

      says:

      ...
      Returns:
      the formatted time string.
      ...

      This is wrong. Like in Format, this should read:

      ...
      Returns:
      the string buffer passed in as toAppendTo, with formatted text appended
      ...

      (Review ID: 147184)
      ======================================================================

            duke J. Duke
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: