equal
deleted
inserted
replaced
86 extends AbstractStringBuilder |
86 extends AbstractStringBuilder |
87 implements java.io.Serializable, Comparable<StringBuilder>, CharSequence |
87 implements java.io.Serializable, Comparable<StringBuilder>, CharSequence |
88 { |
88 { |
89 |
89 |
90 /** use serialVersionUID for interoperability */ |
90 /** use serialVersionUID for interoperability */ |
|
91 @java.io.Serial |
91 static final long serialVersionUID = 4383685877147921099L; |
92 static final long serialVersionUID = 4383685877147921099L; |
92 |
93 |
93 /** |
94 /** |
94 * Constructs a string builder with no characters in it and an |
95 * Constructs a string builder with no characters in it and an |
95 * initial capacity of 16 characters. |
96 * initial capacity of 16 characters. |
456 * string builder ({@code char[]}). The length of the |
457 * string builder ({@code char[]}). The length of the |
457 * {@code char} array may be greater than the number of |
458 * {@code char} array may be greater than the number of |
458 * characters currently stored in the string builder, in which |
459 * characters currently stored in the string builder, in which |
459 * case extra characters are ignored. |
460 * case extra characters are ignored. |
460 */ |
461 */ |
|
462 @java.io.Serial |
461 private void writeObject(java.io.ObjectOutputStream s) |
463 private void writeObject(java.io.ObjectOutputStream s) |
462 throws java.io.IOException { |
464 throws java.io.IOException { |
463 s.defaultWriteObject(); |
465 s.defaultWriteObject(); |
464 s.writeInt(count); |
466 s.writeInt(count); |
465 char[] val = new char[capacity()]; |
467 char[] val = new char[capacity()]; |
473 |
475 |
474 /** |
476 /** |
475 * readObject is called to restore the state of the StringBuffer from |
477 * readObject is called to restore the state of the StringBuffer from |
476 * a stream. |
478 * a stream. |
477 */ |
479 */ |
|
480 @java.io.Serial |
478 private void readObject(java.io.ObjectInputStream s) |
481 private void readObject(java.io.ObjectInputStream s) |
479 throws java.io.IOException, ClassNotFoundException { |
482 throws java.io.IOException, ClassNotFoundException { |
480 s.defaultReadObject(); |
483 s.defaultReadObject(); |
481 count = s.readInt(); |
484 count = s.readInt(); |
482 char[] val = (char[]) s.readObject(); |
485 char[] val = (char[]) s.readObject(); |