--- old/src/share/classes/javax/swing/text/GapContent.java 2014-08-18 18:27:50.000000000 -0700 +++ new/src/share/classes/javax/swing/text/GapContent.java 2014-08-18 18:27:49.000000000 -0700 @@ -826,7 +826,7 @@ * Used to hold a reference to a Mark that is being reset as the * result of removing from the content. */ - final class UndoPosRef { + protected final class UndoPosRef { UndoPosRef(MarkData rec) { this.rec = rec; this.undoLocation = rec.getOffset(); @@ -839,7 +839,7 @@ * @param endOffset end location of inserted string. * @param g1 resulting end of gap. */ - protected void resetLocation(int endOffset, int g1) { + void resetLocation(int endOffset, int g1) { if (undoLocation != endOffset) { this.rec.index = undoLocation; } @@ -849,9 +849,9 @@ } /** Previous Offset of rec. */ - protected int undoLocation; + private int undoLocation; /** Mark to reset offset. */ - protected MarkData rec; + private MarkData rec; } // End of GapContent.UndoPosRef