Skip to content


Browse files Browse the repository at this point in the history
8253792: javax.swing.text.GapContent documentation typos
Reviewed-by: jdv
  • Loading branch information
prsadhuk committed Sep 30, 2020
1 parent 3078b5f commit 4c65365
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -39,7 +39,7 @@
* An implementation of the AbstractDocument.Content interface
* implemented using a gapped buffer similar to that used by emacs.
* The underlying storage is a array of unicode characters with
* The underlying storage is an array of Unicode characters with
* a gap somewhere. The gap is moved to the location of changes
* to take advantage of common behavior where most changes are
* in the same location. Changes that occur at a gap boundary are
Expand All @@ -49,8 +49,8 @@
* The positions tracking change are also generally cheap to
* maintain. The Position implementations (marks) store the array
* index and can easily calculate the sequential position from
* the current gap location. Changes only require update to the
* the marks between the old and new gap boundaries when the gap
* the current gap location. Changes only require updating the
* marks between the old and new gap boundaries when the gap
* is moved, so generally updating the marks is pretty cheap.
* The marks are stored sorted so they can be located quickly
* with a binary search. This increases the cost of adding a
Expand Down Expand Up @@ -320,7 +320,7 @@ public String toString() {

* Record used for searching for the place to
* start updating mark indexs when the gap
* start updating mark indexes when the gap
* boundaries are moved.
private transient MarkData search;
Expand Down

1 comment on commit 4c65365

Copy link

@bridgekeeper bridgekeeper bot commented on 4c65365 Sep 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.