@@ -19,7 +19,6 @@ public void testBoolean(boolean v) throws Exception {
1919ByteArrayOutputStream out = new ByteArrayOutputStream ();
2020StreamPacker packer = new StreamPacker (out );
2121packer .writeBoolean (v );
22- packer .flush ();
2322ByteArrayInputStream in = new ByteArrayInputStream (out .toByteArray ());
2423StreamUnpacker unpacker = new StreamUnpacker (in );
2524boolean ret = unpacker .readBoolean ();
@@ -31,7 +30,6 @@ public void testByte(byte v) throws Exception {
3130ByteArrayOutputStream out = new ByteArrayOutputStream ();
3231StreamPacker packer = new StreamPacker (out );
3332packer .writeByte (v );
34- packer .flush ();
3533ByteArrayInputStream in = new ByteArrayInputStream (out .toByteArray ());
3634StreamUnpacker unpacker = new StreamUnpacker (in );
3735byte ret = unpacker .readByte ();
@@ -43,7 +41,6 @@ public void testShort(short v) throws Exception {
4341ByteArrayOutputStream out = new ByteArrayOutputStream ();
4442StreamPacker packer = new StreamPacker (out );
4543packer .writeShort (v );
46- packer .flush ();
4744ByteArrayInputStream in = new ByteArrayInputStream (out .toByteArray ());
4845StreamUnpacker unpacker = new StreamUnpacker (in );
4946short ret = unpacker .readShort ();
@@ -55,7 +52,6 @@ public void testInt(int v) throws Exception {
5552ByteArrayOutputStream out = new ByteArrayOutputStream ();
5653StreamPacker packer = new StreamPacker (out );
5754packer .writeInt (v );
58- packer .flush ();
5955ByteArrayInputStream in = new ByteArrayInputStream (out .toByteArray ());
6056StreamUnpacker unpacker = new StreamUnpacker (in );
6157int ret = unpacker .readInt ();
@@ -67,7 +63,6 @@ public void testLong(long v) throws Exception {
6763ByteArrayOutputStream out = new ByteArrayOutputStream ();
6864StreamPacker packer = new StreamPacker (out );
6965packer .writeLong (v );
70- packer .flush ();
7166ByteArrayInputStream in = new ByteArrayInputStream (out .toByteArray ());
7267StreamUnpacker unpacker = new StreamUnpacker (in );
7368long ret = unpacker .readLong ();
@@ -79,7 +74,6 @@ public void testFloat(float v) throws Exception {
7974ByteArrayOutputStream out = new ByteArrayOutputStream ();
8075StreamPacker packer = new StreamPacker (out );
8176packer .writeFloat (v );
82- packer .flush ();
8377ByteArrayInputStream in = new ByteArrayInputStream (out .toByteArray ());
8478StreamUnpacker unpacker = new StreamUnpacker (in );
8579float ret = unpacker .readFloat ();
@@ -91,7 +85,6 @@ public void testDouble(double v) throws Exception {
9185ByteArrayOutputStream out = new ByteArrayOutputStream ();
9286StreamPacker packer = new StreamPacker (out );
9387packer .writeDouble (v );
94- packer .flush ();
9588ByteArrayInputStream in = new ByteArrayInputStream (out .toByteArray ());
9689StreamUnpacker unpacker = new StreamUnpacker (in );
9790double ret = unpacker .readDouble ();
@@ -103,7 +96,6 @@ public void testNil() throws Exception {
10396ByteArrayOutputStream out = new ByteArrayOutputStream ();
10497StreamPacker packer = new StreamPacker (out );
10598packer .writeNil ();
106- packer .flush ();
10799ByteArrayInputStream in = new ByteArrayInputStream (out .toByteArray ());
108100StreamUnpacker unpacker = new StreamUnpacker (in );
109101unpacker .readNil ();
@@ -114,7 +106,6 @@ public void testBigInteger(BigInteger v) throws Exception {
114106ByteArrayOutputStream out = new ByteArrayOutputStream ();
115107StreamPacker packer = new StreamPacker (out );
116108packer .writeBigInteger (v );
117- packer .flush ();
118109ByteArrayInputStream in = new ByteArrayInputStream (out .toByteArray ());
119110StreamUnpacker unpacker = new StreamUnpacker (in );
120111BigInteger ret = unpacker .readBigInteger ();
@@ -126,7 +117,6 @@ public void testString(String v) throws Exception {
126117ByteArrayOutputStream out = new ByteArrayOutputStream ();
127118StreamPacker packer = new StreamPacker (out );
128119packer .writeString (v );
129- packer .flush ();
130120ByteArrayInputStream in = new ByteArrayInputStream (out .toByteArray ());
131121StreamUnpacker unpacker = new StreamUnpacker (in );
132122String ret = unpacker .readString ();
@@ -138,7 +128,6 @@ public void testByteArray(byte[] v) throws Exception {
138128ByteArrayOutputStream out = new ByteArrayOutputStream ();
139129StreamPacker packer = new StreamPacker (out );
140130packer .writeByteArray (v );
141- packer .flush ();
142131ByteArrayInputStream in = new ByteArrayInputStream (out .toByteArray ());
143132StreamUnpacker unpacker = new StreamUnpacker (in );
144133byte [] ret = unpacker .readByteArray ();
0 commit comments