Fix from "Knych, Thomas [IT]" <thomas.knych () citigroup ! com>

http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=112144808412305&w=2



git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@219232 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Davanum Srinivas 2005-07-15 18:33:44 +00:00
parent 2923c2de86
commit 557c0cccf4
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public class UnboundedFifoBuffer extends AbstractCollection implements Buffer, S
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject(); in.defaultReadObject();
int size = in.readInt(); int size = in.readInt();
buffer = new Object[size]; buffer = new Object[size+1];
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++) {
buffer[i] = in.readObject(); buffer[i] = in.readObject();
} }