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

Some methods in the class InternationalFormatter poorly documented

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.6



      Name: ssR10000 Date: 12/01/2000



      It's misprint in setMinimum/getMinimum methods:
      -------------------------------------------------------
      setMinimum

      public void setMinimum(Comparable minimum)

            Sets the mimum permissible value. For this to have any effect
                     ^^^^^
      .......

      getMinimum

      public Comparable getMinimum()

            Returns the mimum permissible value.
                        ^^^^^
            Returns:
      ...
      -------------------------------------------------------

      Wrong param's in the stringToValue method:
      -------------------------------------------------------
      stringToValue

      public Object stringToValue(String text)
                           throws ParseException

            Returns the Object representation of the String text.
            Overrides:
                  stringToValue in class DefaultFormatter
            Parameters:
                  tf - JTextComponent containing text
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  !!!excessive param!!!

                  text - String to convert
            Returns:
                  Object representation of text
            Throws:
                  ParseException - if there is an error in the conversion
      -------------------------------------------------------

      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            sswsunw Ssw Ssw (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: