Uploaded image for project: 'Commons Text'
  1. Commons Text
  2. TEXT-138

TextStringBuilder append sub-sequence not consistent with Appendable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4, 1.5, 1.6
    • 1.7

    Description

      The method:

      append(final CharSequence seq, final int startIndex, final int length)

      Overrides the method defined by Appendable. However the behavior of the TextStringBuilder implementation is not consistent with the definition in Appendable. As the class defines "that some edge cases, with invalid indices or null input, have been altered - see individual methods" this would not normally be an issue. However as the implementation states that it overrides Appendable the class cannot be used as an Appendable as the last argument is expected to be an end index and not a length.

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              johnsoneal Neal Johnson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: