diff -r 5be31d9fa455 -r 53fafe384803 emul/compact/src/main/java/java/util/ArrayList.java
--- a/emul/compact/src/main/java/java/util/ArrayList.java Wed Jan 23 22:32:27 2013 +0100
+++ b/emul/compact/src/main/java/java/util/ArrayList.java Wed Jan 23 22:55:28 2013 +0100
@@ -25,6 +25,8 @@
package java.util;
+import org.apidesign.bck2brwsr.emul.lang.System;
+
/**
* Resizable-array implementation of the List interface. Implements
* all optional list operations, and permits all elements, including
@@ -689,51 +691,6 @@
}
/**
- * Save the state of the ArrayList instance to a stream (that
- * is, serialize it).
- *
- * @serialData The length of the array backing the ArrayList
- * instance is emitted (int), followed by all of its elements
- * (each an Object) in the proper order.
- */
- private void writeObject(java.io.ObjectOutputStream s)
- throws java.io.IOException{
- // Write out element count, and any hidden stuff
- int expectedModCount = modCount;
- s.defaultWriteObject();
-
- // Write out array length
- s.writeInt(elementData.length);
-
- // Write out all elements in the proper order.
- for (int i=0; iArrayList instance from a stream (that is,
- * deserialize it).
- */
- private void readObject(java.io.ObjectInputStream s)
- throws java.io.IOException, ClassNotFoundException {
- // Read in size, and any hidden stuff
- s.defaultReadObject();
-
- // Read in array length and allocate array
- int arrayLength = s.readInt();
- Object[] a = elementData = new Object[arrayLength];
-
- // Read in all elements in the proper order.
- for (int i=0; i