Integers and Booleans are final. This fixes the Integer[] streaming problem I was having with Bite Me.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5949 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -21,16 +21,17 @@
|
|||||||
|
|
||||||
package com.threerings.io.streamers {
|
package com.threerings.io.streamers {
|
||||||
|
|
||||||
import com.threerings.util.ClassUtil;
|
|
||||||
import com.threerings.util.Enum;
|
|
||||||
import com.threerings.util.Log;
|
|
||||||
|
|
||||||
import com.threerings.io.ArrayMask;
|
import com.threerings.io.ArrayMask;
|
||||||
import com.threerings.io.ObjectInputStream;
|
import com.threerings.io.ObjectInputStream;
|
||||||
import com.threerings.io.ObjectOutputStream;
|
import com.threerings.io.ObjectOutputStream;
|
||||||
import com.threerings.io.Streamer;
|
import com.threerings.io.Streamer;
|
||||||
import com.threerings.io.Translations;
|
import com.threerings.io.Translations;
|
||||||
import com.threerings.io.TypedArray;
|
import com.threerings.io.TypedArray;
|
||||||
|
import com.threerings.util.ClassUtil;
|
||||||
|
import com.threerings.util.Enum;
|
||||||
|
import com.threerings.util.Integer;
|
||||||
|
import com.threerings.util.Log;
|
||||||
|
import com.threerings.util.langBoolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Streamer for Array objects.
|
* A Streamer for Array objects.
|
||||||
@@ -139,18 +140,18 @@ public class ArrayStreamer extends Streamer
|
|||||||
ins.readBareObjectImpl(target, _delegate);
|
ins.readBareObjectImpl(target, _delegate);
|
||||||
arr[ii] = target;
|
arr[ii] = target;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
for (ii = 0; ii < arr.length; ii++) {
|
for (ii = 0; ii < arr.length; ii++) {
|
||||||
arr[ii] = ins.readObject();
|
arr[ii] = ins.readObject();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static function isFinal (type :Class) :Boolean
|
protected static function isFinal (type :Class) :Boolean
|
||||||
{
|
{
|
||||||
if (type === String) {
|
if (type === String || type === Integer || type === langBoolean) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user