1.1 --- a/emul/src/main/java/java/lang/StringBuffer.java Sat Sep 29 06:38:34 2012 +0200
1.2 +++ b/emul/src/main/java/java/lang/StringBuffer.java Sat Sep 29 10:47:42 2012 +0200
1.3 @@ -561,45 +561,45 @@
1.4 return new String(value, 0, count);
1.5 }
1.6
1.7 - /**
1.8 - * Serializable fields for StringBuffer.
1.9 - *
1.10 - * @serialField value char[]
1.11 - * The backing character array of this StringBuffer.
1.12 - * @serialField count int
1.13 - * The number of characters in this StringBuffer.
1.14 - * @serialField shared boolean
1.15 - * A flag indicating whether the backing array is shared.
1.16 - * The value is ignored upon deserialization.
1.17 - */
1.18 - private static final java.io.ObjectStreamField[] serialPersistentFields =
1.19 - {
1.20 - new java.io.ObjectStreamField("value", char[].class),
1.21 - new java.io.ObjectStreamField("count", Integer.TYPE),
1.22 - new java.io.ObjectStreamField("shared", Boolean.TYPE),
1.23 - };
1.24 -
1.25 - /**
1.26 - * readObject is called to restore the state of the StringBuffer from
1.27 - * a stream.
1.28 - */
1.29 - private synchronized void writeObject(java.io.ObjectOutputStream s)
1.30 - throws java.io.IOException {
1.31 - java.io.ObjectOutputStream.PutField fields = s.putFields();
1.32 - fields.put("value", value);
1.33 - fields.put("count", count);
1.34 - fields.put("shared", false);
1.35 - s.writeFields();
1.36 - }
1.37 -
1.38 - /**
1.39 - * readObject is called to restore the state of the StringBuffer from
1.40 - * a stream.
1.41 - */
1.42 - private void readObject(java.io.ObjectInputStream s)
1.43 - throws java.io.IOException, ClassNotFoundException {
1.44 - java.io.ObjectInputStream.GetField fields = s.readFields();
1.45 - value = (char[])fields.get("value", null);
1.46 - count = fields.get("count", 0);
1.47 - }
1.48 +// /**
1.49 +// * Serializable fields for StringBuffer.
1.50 +// *
1.51 +// * @serialField value char[]
1.52 +// * The backing character array of this StringBuffer.
1.53 +// * @serialField count int
1.54 +// * The number of characters in this StringBuffer.
1.55 +// * @serialField shared boolean
1.56 +// * A flag indicating whether the backing array is shared.
1.57 +// * The value is ignored upon deserialization.
1.58 +// */
1.59 +// private static final java.io.ObjectStreamField[] serialPersistentFields =
1.60 +// {
1.61 +// new java.io.ObjectStreamField("value", char[].class),
1.62 +// new java.io.ObjectStreamField("count", Integer.TYPE),
1.63 +// new java.io.ObjectStreamField("shared", Boolean.TYPE),
1.64 +// };
1.65 +//
1.66 +// /**
1.67 +// * readObject is called to restore the state of the StringBuffer from
1.68 +// * a stream.
1.69 +// */
1.70 +// private synchronized void writeObject(java.io.ObjectOutputStream s)
1.71 +// throws java.io.IOException {
1.72 +// java.io.ObjectOutputStream.PutField fields = s.putFields();
1.73 +// fields.put("value", value);
1.74 +// fields.put("count", count);
1.75 +// fields.put("shared", false);
1.76 +// s.writeFields();
1.77 +// }
1.78 +//
1.79 +// /**
1.80 +// * readObject is called to restore the state of the StringBuffer from
1.81 +// * a stream.
1.82 +// */
1.83 +// private void readObject(java.io.ObjectInputStream s)
1.84 +// throws java.io.IOException, ClassNotFoundException {
1.85 +// java.io.ObjectInputStream.GetField fields = s.readFields();
1.86 +// value = (char[])fields.get("value", null);
1.87 +// count = fields.get("count", 0);
1.88 +// }
1.89 }