< prev index next >
src/java.desktop/share/classes/javax/swing/text/AbstractDocument.java
Print this page
*** 1795,1805 ****
if (a != null) {
addAttributes(a);
}
}
! private final void indent(PrintWriter out, int n) {
for (int i = 0; i < n; i++) {
out.print(" ");
}
}
--- 1795,1805 ----
if (a != null) {
addAttributes(a);
}
}
! private void indent(PrintWriter out, int n) {
for (int i = 0; i < n; i++) {
out.print(" ");
}
}
*** 2061,2071 ****
attributes =
context.removeAttribute(attributes, StyleConstants.ResolveAttribute);
}
}
! private final void checkForIllegalCast() {
Thread t = getCurrentWriter();
if ((t == null) || (t != Thread.currentThread())) {
throw new StateInvariantError("Illegal cast to MutableAttributeSet");
}
}
--- 2061,2071 ----
attributes =
context.removeAttribute(attributes, StyleConstants.ResolveAttribute);
}
}
! private void checkForIllegalCast() {
Thread t = getCurrentWriter();
if ((t == null) || (t != Thread.currentThread())) {
throw new StateInvariantError("Illegal cast to MutableAttributeSet");
}
}
< prev index next >