1.1 --- a/emul/compact/src/main/java/java/util/Vector.java Mon Jan 28 13:28:02 2013 +0100
1.2 +++ b/emul/compact/src/main/java/java/util/Vector.java Mon Jan 28 13:52:28 2013 +0100
1.3 @@ -25,6 +25,8 @@
1.4
1.5 package java.util;
1.6
1.7 +import org.apidesign.bck2brwsr.emul.lang.System;
1.8 +
1.9 /**
1.10 * The {@code Vector} class implements a growable array of
1.11 * objects. Like an array, it contains components that can be
1.12 @@ -1055,25 +1057,6 @@
1.13 }
1.14
1.15 /**
1.16 - * Save the state of the {@code Vector} instance to a stream (that
1.17 - * is, serialize it).
1.18 - * This method performs synchronization to ensure the consistency
1.19 - * of the serialized data.
1.20 - */
1.21 - private void writeObject(java.io.ObjectOutputStream s)
1.22 - throws java.io.IOException {
1.23 - final java.io.ObjectOutputStream.PutField fields = s.putFields();
1.24 - final Object[] data;
1.25 - synchronized (this) {
1.26 - fields.put("capacityIncrement", capacityIncrement);
1.27 - fields.put("elementCount", elementCount);
1.28 - data = elementData.clone();
1.29 - }
1.30 - fields.put("elementData", data);
1.31 - s.writeFields();
1.32 - }
1.33 -
1.34 - /**
1.35 * Returns a list iterator over the elements in this list (in proper
1.36 * sequence), starting at the specified position in the list.
1.37 * The specified index indicates the first element that would be