diff -r 94c1a17117f3 -r f99a92839285 emul/src/main/java/java/lang/StringBuffer.java --- a/emul/src/main/java/java/lang/StringBuffer.java Sat Sep 29 06:38:34 2012 +0200 +++ b/emul/src/main/java/java/lang/StringBuffer.java Sat Sep 29 10:47:42 2012 +0200 @@ -561,45 +561,45 @@ return new String(value, 0, count); } - /** - * Serializable fields for StringBuffer. - * - * @serialField value char[] - * The backing character array of this StringBuffer. - * @serialField count int - * The number of characters in this StringBuffer. - * @serialField shared boolean - * A flag indicating whether the backing array is shared. - * The value is ignored upon deserialization. - */ - private static final java.io.ObjectStreamField[] serialPersistentFields = - { - new java.io.ObjectStreamField("value", char[].class), - new java.io.ObjectStreamField("count", Integer.TYPE), - new java.io.ObjectStreamField("shared", Boolean.TYPE), - }; - - /** - * readObject is called to restore the state of the StringBuffer from - * a stream. - */ - private synchronized void writeObject(java.io.ObjectOutputStream s) - throws java.io.IOException { - java.io.ObjectOutputStream.PutField fields = s.putFields(); - fields.put("value", value); - fields.put("count", count); - fields.put("shared", false); - s.writeFields(); - } - - /** - * readObject is called to restore the state of the StringBuffer from - * a stream. - */ - private void readObject(java.io.ObjectInputStream s) - throws java.io.IOException, ClassNotFoundException { - java.io.ObjectInputStream.GetField fields = s.readFields(); - value = (char[])fields.get("value", null); - count = fields.get("count", 0); - } +// /** +// * Serializable fields for StringBuffer. +// * +// * @serialField value char[] +// * The backing character array of this StringBuffer. +// * @serialField count int +// * The number of characters in this StringBuffer. +// * @serialField shared boolean +// * A flag indicating whether the backing array is shared. +// * The value is ignored upon deserialization. +// */ +// private static final java.io.ObjectStreamField[] serialPersistentFields = +// { +// new java.io.ObjectStreamField("value", char[].class), +// new java.io.ObjectStreamField("count", Integer.TYPE), +// new java.io.ObjectStreamField("shared", Boolean.TYPE), +// }; +// +// /** +// * readObject is called to restore the state of the StringBuffer from +// * a stream. +// */ +// private synchronized void writeObject(java.io.ObjectOutputStream s) +// throws java.io.IOException { +// java.io.ObjectOutputStream.PutField fields = s.putFields(); +// fields.put("value", value); +// fields.put("count", count); +// fields.put("shared", false); +// s.writeFields(); +// } +// +// /** +// * readObject is called to restore the state of the StringBuffer from +// * a stream. +// */ +// private void readObject(java.io.ObjectInputStream s) +// throws java.io.IOException, ClassNotFoundException { +// java.io.ObjectInputStream.GetField fields = s.readFields(); +// value = (char[])fields.get("value", null); +// count = fields.get("count", 0); +// } }