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

Incorrect description for biasRet in javax.swing.text.View

XMLWordPrintable

      The description of Position.Bias[] biasRet parameter in Views is wrong:

      CompositeView
           * @param bias either <code>Position.Bias.Forward</code> or
           * <code>Position.Bias.Backward</code>
          public int viewToModel(... Position.Bias[] bias)

      AsyncBoxView
           * @param biasRet an array contain the bias that was checked
          public int getNextVisualPositionFrom(...
                                               Position.Bias[] biasRet)

      This parameter is used to return the bias of the returned offset into the document model.

      Compare View.viewToModel:
           * @param biasReturn the returned bias

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: