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

Typo in doc for javax.swing.SpinnerNumberModel.setValue(Object)

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.6



      Name: ooR10001 Date: 12/21/2000


      Specification for javax.swing.SpinnerNumberModel.setValue(Object) has typo: word
      'naturally' is replicated twice.

      The javadoc says:
      ------------------------------------------------------------
      setValue

      public void setValue(Object value)

            Set the current value for this sequence. If value is null, or not a Number, an
            IllegalArgumentException is thrown. No bounds checking is done here: the new
            value may invalidate the (minimum <= value <= maximum) invariant enforced by
            the constructors. It's also possible to set the value to be something that
            wouldn't naturally occur in the sequence, i.e. a value that's not modulo the
            stepSize. This is to simplify updating the model, and to accomodate spinners
            that don't want to restrict values that have been directly entered by the user.
            Naturally naturally one should ensure that the (minimum <= value <= maximum)
            ^^^^^^^^^^^^^^^^^^^
            invariant is true before calling the next, previous, or setValue methods.
      ------------------------------------------------------------

      It needs to be fixed.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: